Force drop mysql bypassing foreign key constraint

后端 未结 6 1022
别跟我提以往
别跟我提以往 2021-01-29 18:08

I\'m trying to delete all tables from a database except one, and I end up having the following error:

Cannot delete or update a parent row: a foreign key

6条回答
  •  忘掉有多难
    2021-01-29 18:45

    Since you are not interested in keeping any data, drop the entire database and create a new one.

提交回复
热议问题