Problem: I'm experimenting with using mysqldump to backup my data, 
which seems to work ok.  However, in recreating the tables I run into 
a problem.

Using either "LOAD DATA INFILE" or "mysqlimport" methods I get the error

    Error: Duplicate entry '102' for key 1

Field def:  record_id SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY ;

There is no duplicate record_id '102', but I'm concerned that, since 
the data in the text file is not in record_id order, that the 
AUTO_INCREMENT option I've assigned to record_id may be causing the 
problem - record_id "100" comes much earlier in the file, for 
instance.

Do you know if either LOAD DATA or mysqlimport disables auto 
increment?  Is there something else I should be doing?

Thank you,
Nelson


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to