問題:
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