/ Published in: SQL
Expand |
Embed | Plain Text
mysql> SET FOREIGN_KEY_CHECKS = 0; mysql> SOURCE dump_file_name; mysql> SET FOREIGN_KEY_CHECKS = 1;
Comments
Subscribe to comments
You need to login to post a comment.
pointer on 11/24/08
1 person have marked this snippet as a favorite
mysql> SET FOREIGN_KEY_CHECKS = 0; mysql> SOURCE dump_file_name; mysql> SET FOREIGN_KEY_CHECKS = 1;
Subscribe to comments
You need to login to post a comment.
To give a bit of background
source: http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvarforeignkey_checks