Hi there, I am trying to clean out my database by deleting entries in certain tables. However, I am constantly getting a MySQL error message saying that I can't do so. Is there any way I can work around this? #1451 - Cannot delete or update a parent row: a foreign key constraint fails (`rayku_db`.`shout`, CONSTRAINT `shout_ibfk_1` FOREIGN KEY (`poster_id`) REFERENCES `user` (`id`)) Thanks!
You are using foriegn keys. Which means some other table is dependant on the info in the table you are deleting from. You can use ON DELETE CASCADE on the child table to solve this.