Jump to content
MakeWebGames

Delete Users


thegreatt

Recommended Posts

Guest Anonymous

Re: Delete Users

DELETE FROM users WHERE userid != 1;

DELETE FROM userstats WHERE userid != 1;

Might be an idea to:

TRUNCATE events;

TRUNCATE mail;

etc - and your log files.

Link to comment
Share on other sites

Re: Delete Users

Normally if you delete all users the IDs carry on as normal..... say you had 300 players and you deleted them all and there was only ID 1 left not deleted, when another user signs up they won't be ID 2 there'll be ID 301 so it skips 300 IDs still, I think he means re-starr the IDs from 2+ again.

Link to comment
Share on other sites

Re: Delete Users

lol oh right I understand now. Well personally I do not know as I have not tried this. But why not just delete the ID 1 user and delete their stats and then just make that user again by the register page.

Then to change to admin just change the user_level via phpmyadmin.

Thats the simple thing to do...

Unless anyone knows a simpler way....(HINT HINT NYNA! YOU KNOW EVERYTHING! :-D)

Link to comment
Share on other sites

Re: Delete Users

 

Hey, i was just wondering the easiest option to remove all users from the database and start from scratch?

 

And ideas :?

 

He did say start from scratch so what Nyna said should do the trick. HOW CAN YOU NOT KNOW HOW TO TRUNCATE TABLES??? lol. You did say "easisest" option so I guess you were looking for something easier than that, but I assure you, that is easy!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...