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

后端 未结 10 2487
野趣味
野趣味 2021-02-13 03:22

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:39

    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

提交回复
热议问题