To avoid the error you can turn off the check for foreign keys at the beginning of your script. Use the following: SET FOREIGN_KEY_CHECKS=0; Your script will execute without the errors realted to foreign keys. At the end of the script you can turn this back on with: SET FOREIGN_KEY_CHECKS=1;
↧