Force drop mysql bypassing foreign key constraint

后端 未结 6 924
别跟我提以往
别跟我提以往 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:37

    You can use the following steps, its worked for me to drop table with constraint,solution already explained in the above comment, i just added screen shot for that -enter image description here

提交回复
热议问题