I want to delete a database, but I keep on getting the following appearing:
#1217 - Cannot delete or update a parent row: a foreign key constraint fails
and the relevant files are ‘stuck!
Most hosts come with PhpMyAdmin (a web based database editor) which will allow you to input the commands and run them. Select your database, click on the SQL tab, enter the commands and click run.
Alternatively you can use something like SSH and the command line (PhpMyAdmin is much easier!).
I deleted so many magento db, if you select all tables and click on delete you receive that errors (but so many tables will be deleted), if you delete 1 table at once it works.
The tables that get errors are the first 4
Try to delete with “X” image x row and let me know
Thanks for your reply but I don’t get what you mean.
I have deleted all of the tables now (like Flowstack said in their post) it actually took a few times before they all went using phpMyAdmin.
What I am asking is now that all tables have been deleted, which I presume is because I ran the SQL query and not just because I tried deleting them several times, why doesn’t the 2nd query work and will this cause me any other problems in the future?
I’ve since then restored another database and cannot see a problem yet.