Delete post results in “Cannot delete or update a parent row: a foreign key constraint fails”
Your MySQL table structure creates a reference and constraint relationship between your wp_product table and wp_posts. MySQL is doing exactly what you have instructed it to do. In this case, preventing you from deleting a record in wp_posts that is ‘related’ to records in your wp_product table. In a nutshell, this is what foreign keys … Read more