Is there an application which will allow me to drop multiple mysql tables at once? I have a database that has 363 tables on it. And most of them are not needed. It would take too long if I do it in phpmyadmin since you can only drop one table at a time + the confirmation message.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
If your the user you are connecting to the database with has "DROP TABLES" allowed then you can do it with a query...
Check out Mysql dropping multiple tables for a good desciption on how to do it using command line tools (if you can connect to the server via SSH). |
|||
|
|
|
For anyone else in the same situation with thousands of tables to drop, such as wordpress instances sharing one database, then this will do the job quickly but use extreme care. It will not forgive! Run first with force=0 to show what would be dropped depending on grep filter, then change to 1 to actually do:
|
|||
|
|