Andre MATOS <[EMAIL PROTECTED]> wrote:
> 
> I tried it, but it didn't work.
> 
> ERROR 1217 at line 3483: Cannot delete or update a parent row: a foreign 
> key constraint fails
> 
> I am using InnoDB... that's my problem...

Add to the beginning of the dump file:

SET FOREIGN_KEY_CHECKS=0;

and

SET FOREIGN_KEY_CHECKS=1;

to the end of dump file

> 
> On Fri, 19 Mar 2004, Egor Egorov wrote:
> 
>> Andre MATOS <[EMAIL PROTECTED]> wrote:
>> > Hi List,
>> > 
>> > Once I have dumped my database using mysqldump how can I upload the data 
>> > again using the mysql command line (MySQL in ansi mode)?
>> > 
>> 
>>       mysql -u user_name -p database_name < dump_file.sql
>> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to