Hey,
I was wondering if it's possible to reset the "auto_increment " feature in
MySQL. For example, if I have a database with a list that will change
every year (the old list be completely flushed out, deleted) and then I
insert a new list, it will very quickly reach the max INDEX length... Does
it just wrap itself? Is there a way to reset "auto_increment " so that I
can flush all the rows, reset auto_increment, and start from scratch?
(Since it currently isn't very important I just go in with phpMyAdmin, copy
the table structure to a new table, delete the old table, and rename the
new table to what the old table was. Like I said, it's really not that
important of an application, but I like my INDEXes to start from 1 :-) )
-Eric Kincl
I was wondering if it's possible to reset the "auto_increment " feature in
MySQL. For example, if I have a database with a list that will change
every year (the old list be completely flushed out, deleted) and then I
insert a new list, it will very quickly reach the max INDEX length... Does
it just wrap itself? Is there a way to reset "auto_increment " so that I
can flush all the rows, reset auto_increment, and start from scratch?
(Since it currently isn't very important I just go in with phpMyAdmin, copy
the table structure to a new table, delete the old table, and rename the
new table to what the old table was. Like I said, it's really not that
important of an application, but I like my INDEXes to start from 1 :-) )
-Eric Kincl
Comment