Rafal Kedziorski <[EMAIL PROTECTED]> wrote:
> 
> we have problems with import our dumped InnoDB tables.
> 
> We get this error message:
> 
> "Can't create table '.\mmcms_test\media_lock.frm' (errno: 150)"
> 
> My tables which will be referenced by foreign keys will be dumped in the 
> inncorect order.
> 
> if I set:
> 
> 
> SET FOREIGN_KEY_CHECKS=0;
> 
> sql script
> 
> SET FOREIGN_KEY_CHECKS=1;
> 
> Than import works. What is the best way to dump and import InnoDB tables.

Using SET FOREIGN_KEY_CHECKS=0 :)



-- 
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