List:General Discussion« Previous MessageNext Message »
From:Alexander Skwar Date:July 17 2001 7:58pm
Subject:mysqldump loses auto_increment
View as plain text  
Hello.

I've just created a table with a auto_increment column.  I then did

ALTER TABLE tbl AUTO_INCREMENT=4711;

Now, when I insert one row into this table, it get's 4711 as the
auto_increment column's value.  However, dumping this table with

 mysqldump --opt DB tbl

loses the auto_increment value i set.  So, if I'd replay the dump, the
first time I insert a row it would get 1 for the auto_increment, and not
4711.

How to circumvent this?

Alexander Skwar
-- 
How to quote:	http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:	http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
		Uptime: 13 hours 25 minutes
Thread
mysqldump loses auto_incrementAlexander Skwar17 Jul
  • RE: mysqldump loses auto_incrementWarren van der Merwe17 Jul
    • Re: mysqldump loses auto_incrementAlexander Skwar17 Jul
      • Re: mysqldump loses auto_incrementPaul DuBois17 Jul
  • Re: mysqldump loses auto_incrementGerald R. Jensen18 Jul