Welcome, Guest. Please Login or Register.
April 27, 2025, 10:43:02 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Feedback  |  Full database?? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Full database??  (Read 665 times)
Ajaxno1
Noobie
*
Posts: 1


I'm a llama!

Full database??
« on: September 15, 2002, 12:08:04 AM »
Reply with quote

This night I deleted all of my member groups and made  new ones but at least half of te groups weren't saved. So I looked in the database en saw that the ID din't go futher than 127. But I delted every post but the databse stayed at 127. (does somebody know to set it to count 1 at the last ID) For now I made the ID from tinyint to smallint it worked but now I asked my self what is the post or reactions database is full?? And how can I solve this?
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:Full database??
« Reply #1 on: September 15, 2002, 01:46:52 PM »
Reply with quote

By deleting the groups using a query like this:

DELETE FROM table_name WHERE id = 'x';

where x is a number, MySQL won't reset the start number, however:

DELETE FROM table_name;      or
TRUNCATE TABLE table_name;

should remove all the records and reset the next auto number data.

If you have altered the id to a smallint then you should have no problems in the forseeable future.

I've designed the DB for YSE 2 and I've ensured that this sort of thing won't happen (unless you're running a service like www.hardforum.com - in which case you'd be doing some hefty optimisation anyway!).
Logged

You can't have everything... where would you put it? -- Steve Wright
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  Full database?? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.128 seconds with 16 queries.