vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Resetting UserIDs? (https://vborg.vbsupport.ru/showthread.php?t=223604)

Glenn379 09-19-2009 06:37 PM

Resetting UserIDs?
 
Hey everyone! This forum has helped me in the past so I figured I'd see if anyone knows.

I had opened a new forum awhile back. After neglecting it for 2 months (It was still more of a test) I got 300+ spam users. I'm hoping to be able to reset the userID count so that it doesn't go 1-10 and then jump to 301, etc. I've now deleted those users so I'm hoping there's a way to reset it. Any ideas?

Lynne 09-19-2009 06:42 PM

You could really screw things up if you play with the auto increment number for the tables and don't know exactly what you are doing. It's best to leave that number alone.

Glenn379 09-19-2009 06:55 PM

Quote:

Originally Posted by Lynne (Post 1887706)
You could really screw things up if you play with the auto increment number for the tables and don't know exactly what you are doing. It's best to leave that number alone.

I'm just anal about the gap. There isn't any roundabout way to do it or anything? Its just me and another admin, if everyone is deleted but us, registered users 1 and 2, there isn't any way to continue new registrations from 3?

Lynne 09-19-2009 09:32 PM

Yes, there probably is by changing the auto-increment number in your database if you really know exactly what you are about. Otherwise, you will screw up your site.

Adrian Schneider 09-19-2009 10:18 PM

If you deleted the users properly, and no lingering data remains (userfield, usertextfield, etc.) then all you need to do is run this query:
Code:

alter table user auto_increment = 3;
It should be harmless.


All times are GMT. The time now is 04:13 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.02267 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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