vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to fix the ids? (https://vborg.vbsupport.ru/showthread.php?t=240103)

Muazam 04-09-2010 10:04 AM

How to fix the ids?
 
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 11:56 AM

Quote:

Originally Posted by Muazam (Post 2018316)
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:

Code:

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 05:41 PM

I am just following up on this Muazam. Did the above solution worked for you?

Charlie98902 04-10-2010 05: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 06:10 PM

I'll try it soon, Thanks Borbole.

DavidsMods 04-10-2010 06:20 PM

Try this query instead. It will reset the auto_increment value to the current highest + 1

[sql]ALTER TABLE usergroup AUTO_INCREMENT = 1[/sql]

borbole 04-10-2010 06:31 PM

Quote:

Originally Posted by Muazam (Post 2019123)
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.


All times are GMT. The time now is 06:33 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01791 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete