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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章