• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Image ID

Scheduled Pinned Locked Moved
FOG Problems
5
6
2.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Mat Holland
    last edited by Aug 6, 2012, 4:47 PM

    When you delete an image, and make a new one, even if you only have 1 image, it gives it the next higher ID number. How can you go and give it a different image ID of say back to 1 instead of 7?

    1 Reply Last reply Reply Quote 0
    • R
      Robin Commander
      last edited by Aug 6, 2012, 4:49 PM

      I believe that it’s necessary to manually edit the SQL database table… not something I’ve tried so sorry I can’t be of much help.

      No doubt that somebody far cleverer than me will be along in a moment with some sage advice.

      Cheers
      Robin

      Assumption is the mother of all f***ups !

      1 Reply Last reply Reply Quote 0
      • B
        BryceZ
        last edited by Aug 6, 2012, 5:27 PM

        Robin is correct, you would need to manually edit the database to reuse old image ID’s. I seem to recall there being some talk of possibly changing this functionality in the future, but for the time being you’re stuck with manually changing them.

        1 Reply Last reply Reply Quote 0
        • L
          Lee Rowlett Developer
          last edited by Aug 6, 2012, 5:33 PM

          just incase…

          1. Connect to mysql server [mysql -u root -pyourpassword fog], note there is not space between -p and your password.
          2. List all tables [show tables;]
          3. Table images is where you need to make change, so see all available fields in that table [select * from images;]
          4. Above command will list all images for your with all their detail.
          5. Pick any field except imageID and do a query based on that to udate relevant imageID, i.e. I want to udate imageID to 2 for image called “XPSP3” I would run the following command:
            update images set imageID=‘2’ where imageName=‘XPSP3’;
          1 Reply Last reply Reply Quote 0
          • M
            Mat Holland
            last edited by Aug 6, 2012, 5:43 PM

            Thank you guys!

            1 Reply Last reply Reply Quote 0
            • C
              chad-bisd Moderator
              last edited by Aug 6, 2012, 6:17 PM

              don’t delete image. just upload over the old one


              If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                2/6
                Last post

              205

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project