foreign_keys preventing table drops
-
Some plugins setup new database tables with foreign keys to tables like wp_post or wp_users.
With the presence of these foreign keys, it is preventing the wp_post and wp_users tables from getting dropped and the import cut short.
SOLUTION:
add “SET foreign_key_checks = 0;” on the beginning of the SQL file and then “SET foreign_key_checks = 1;” on the end of the file
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘foreign_keys preventing table drops’ is closed to new replies.