How to remove all MySQL tables from the command-line without DROP database permissions? [duplicate]

问题:

This question already has answers here : 这个问题在这里已经有了答案
Closed 7 years ago . 7年前关闭。

How do I drop all tables in Windows MySQL, using command prompt?如何使用命令提示符删除 Windows MySQL 中的所有表? The reason I want to do this is that our user has access to the database drops, but no access to re-creating the database itself, for this reason we must drop the tables manually.我想这样做的原因是我们的用户可以访问数据库删除,但无权重新创建数据库本身,因此我们必须手动删除表。 Is there a way to drop all the tables at once?有没有办法一次删除所有表? Bear in mind that most of the tables are linked with foreign keys so they would have to be dropped in a specific order.请记住,大多数表都与外键相关联,因此必须按特定顺序删除它们。


解决方案:

参考一: https://en.stackoom.com/question/q2l4
参考二: https://stackoom.com/question/q2l4
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章