How can I delete the contents of all tables in my database in phpMyAdmin without dropping the database?

后端 未结 10 1374
予麋鹿
予麋鹿 2021-02-13 03:32

How can I empty the contents of all tables in my database in phpMyAdmin without dropping any of the tables in the database?

Since I do this several times an hour while i

10条回答
  •  情书的邮戳
    2021-02-13 03:41

    Create a SQL script with multiple DELETE statements (one for each table) and execute it.

    Get into phpMyAdmin and select the database that you want. Select the SQL tab and paste the SQL script into the window. Hit Go.

    Look here too:

    Drop all tables from a MySQL Database without deletion

提交回复
热议问题