Forums

[resolved] Can I re-order user ID and blogs ID? (6 posts)

  1. imjscn
    Member
    Posted 1 year ago #

    sometimes I got spammers registered and created blogs. After deleting them, the ID they used are wasted. For example, on my user list, the users are listed as "1, 3, 5, 7,15...", and blogs ID is the same situation.

    Can I go to phpAdmin to change the IDs and re-order them without getting into big trouble?

    Regards

  2. Probably, but you'd also have to change the counter. I would just leave it alone. They don't really affect anything.

  3. imjscn
    Member
    Posted 1 year ago #

    I still prefer things stay clean and in order. Where is the counter?

  4. I still prefer things stay clean and in order.

    I would strongly urge you to give up that ghost when it comes to computer databases. The information IS clean and in order, but it's in computer order, not human. I speak from a decade plus of software support. If the only thing it bothers is your OCD (yes, it gets to me too), then you should walk away from the database and let it be.

    Here's the gist of what you have to do (and if you don't take a backup before you start in on this, you will cry).

    Turn off letting people sign up. For now.

    Make a note of everyone's OLD and NEW user ids, because you will need to EDIT every post and comment to the new IDs. Also, you have to update the entire wp_usermeta table to point to the new ones.

    I poked around a little and I can't find where the user count is located. It MAY be just as simple as 'what's the last one? Okay, insert a new one' but I don't know for sure. You may have to do some serious digging into the database and functions.

  5. imjscn
    Member
    Posted 1 year ago #

    OMG, I surrender.
    I thought it could be simply like cleanning dusty chairs :-)

  6. More like re-doing your plumbing :)

Topic Closed

This topic has been closed to new replies.

About this Topic