ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails
When deleting a table in a MySQL database, I get the following error message MariaDB [thrkhztbpt]> drop table users; ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails MariaDB [thrkhztbpt]> To fix the error, run SET FOREIGN_KEY_CHECKS=0; Now the drop table SQL command will work. After you dropped the … Read more