BUG:
If you attempt to “Copy Database to Different Host/DB…” from a database containing InnoDB tables with foreign key constraints, SQLyog will copy the tables from the source database in alphabetical order. This can lead to foreign key constraint problems, as foreign keys may refer to tables that have not yet been created.
FIX:
SQLyog should issue a SET FOREIGN_KEY_CHECKS=0 before copying the tables.
From the MySQL documentation:
Quote:
If you want to ignore foreign key constraints during, for example for a LOAD DATA operation, you can do SET FOREIGN_KEY_CHECKS=0.