How to change user ID Number?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Super Jinni
    Senior Member
    • Feb 2008
    • 144

    How to change user ID Number?

    Hi all,

    I want to know if there is anyway to change Users ID number?

    and I want to know if it possible to add (insert) a new user with the ID of one who they has been Deleted or Merged..

    so anyone knows something about doing that?

    thanks

  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    No, userids are auto-incremented and there is no function to change existing ones.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • Super Jinni
      Senior Member
      • Feb 2008
      • 144

      #3
      what about the deleted once? is it possible to get them back? I mean from DB or something like that...

      Comment

      • David Grove
        Senior Member
        • Apr 2008
        • 3507
        • 5.5.x

        #4
        Don't do this. Read Steve's post below.

        If you have users 1, 2, 3, 5, & 6 and you want #6 to be #4 for whatever reason, you could probably manually change userid from 6 to 4 in the database, then rebuild all vBulletin's caches and, and change the the tables auto_increment down from 7 to 6 and it would probably work.

        But, I don't see a good reason to do it.
        Last edited by David Grove; Mon 26 May '08, 12:49pm.
        ~~~~~

        Comment

        • Steve Machol
          Former Customer Support Manager
          • Jul 2000
          • 154488

          #5
          Unfortunately this will cause more problems than it's worth. You would have to make the appropriate changed to every tale that has a userid in it. It's a lot of work and you would run a very high risk of ruining your database for good..
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography


          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          Comment

          • Super Jinni
            Senior Member
            • Feb 2008
            • 144

            #6
            in fact what I did is that I merged two users by mistake.. so one of them has been deleted

            and the order is not as before e.g. 8,9,10,11,12,13 after merging it's like 8,9,10,12,13
            number 11 has been deleted after merging

            so I want it to be back if possible

            and the order is not the same with the total number of users

            total users for an example are 390 and the last one's ID is 391

            Comment

            • David Grove
              Senior Member
              • Apr 2008
              • 3507
              • 5.5.x

              #7
              Excellent point Steve. I've edited my post above.
              ~~~~~

              Comment

              • David Grove
                Senior Member
                • Apr 2008
                • 3507
                • 5.5.x

                #8
                Originally posted by Super Jinni
                in fact what I did is that I merged two users by mistake.. so one of them has been deleted

                and the order is not as before e.g. 8,9,10,11,12,13 after merging it's like 8,9,10,12,13
                number 11 has been deleted after merging

                so I want it to be back if possible

                and the order is not the same with the total number of users

                total users for an example are 390 and the last one's ID is 391

                Do you have a database backup from before merging the users? And not to be harsh, but there is a warning when merging users that says it is irreversible.
                ~~~~~

                Comment

                • Super Jinni
                  Senior Member
                  • Feb 2008
                  • 144

                  #9
                  yes I have database backup

                  but it was about month ago or more, I didn't notice that only when the user complained so I thought it is possible to get the name and ID back..

                  and I did merge the users by mistake ^^

                  Comment

                  • Super Jinni
                    Senior Member
                    • Feb 2008
                    • 144

                    #10
                    after all I think it's really doesn't worth it..

                    I thought there was a simple way to do that, but I'm afraid I'll have a lot of trouble with that..


                    thanks guys..


                    Comment

                    • David Grove
                      Senior Member
                      • Apr 2008
                      • 3507
                      • 5.5.x

                      #11
                      From now on, make a daily backup of your database (automatically of course).
                      ~~~~~

                      Comment

                      • karabaja2
                        Member
                        • Jan 2008
                        • 32
                        • 3.7.x

                        #12
                        Originally posted by David Grove
                        From now on, make a daily backup of your database (automatically of course).
                        Is there a recommended tool or plugin for automatic database backup?

                        Comment

                        • Zachery
                          Former vBulletin Support
                          • Jul 2002
                          • 59097

                          #13
                          No, in the future please start your own thread instead of bumping a 2 year old post

                          Comment

                          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                          Working...