View Full Version : How to fix the ids?
Muazam
04-09-2010, 11:04 AM
Hello, I've made a lot of groups. And then I deleted them most of them.
I have like 9 groups left.
the counter is messed now, when I make a group it starts on 41. It should start on 10.
Anyone know how to make it start from 10? I have basic understanding in MYSQL.
But I don't know how to setup the AI.
Anyone knows how?
Thanks
borbole
04-09-2010, 12:56 PM
Hello, I've made a lot of groups. And then I deleted them most of them.
I have like 9 groups left.
the counter is messed now, when I make a group it starts on 41. It should start on 10.
Anyone know how to make it start from 10? I have basic understanding in MYSQL.
But I don't know how to setup the AI.
Anyone knows how?
Thanks
Try to run this query at the phpmyadmin in the cp of your host:
UPDATE `usergroup` SET usergroupid = 10 WHERE title = 'Banned Users';
If your db tables have a prefix, don''t forget to include it in your query as well. And replace Banned Users with the name of your custom group that you want to have the uid 10.
borbole
04-10-2010, 06:41 PM
I am just following up on this Muazam. Did the above solution worked for you?
Charlie98902
04-10-2010, 06:58 PM
I am curious as I think this is what I need from profile fields adds and deletes I have done. Yes I know a different query run is needed.
Muazam
04-10-2010, 07:10 PM
I'll try it soon, Thanks Borbole.
DavidsMods
04-10-2010, 07:20 PM
Try this query instead. It will reset the auto_increment value to the current highest + 1
ALTER TABLE usergroup AUTO_INCREMENT = 1
borbole
04-10-2010, 07:31 PM
I'll try it soon, Thanks Borbole.
No problem, let us know how it will go. You can run either query as long as you get done what you need, which is the most important thing.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.