Delete data from all tables in MYSQL

前端 未结 16 1765
自闭症患者
自闭症患者 2020-12-13 09:17

I have 100 tables, 40,000 rows in each table. I want to go into MySQL and delete all rows from all tables.

...in 1 statement, if p

16条回答
  •  我在风中等你
    2020-12-13 09:59

    Begin by accessing phpMyAdmin via cPanel or Plesk.

    1. Select the database you wish to work with (from the list of databases on the left column when on the phpMyAdmin home page).
    2. A list of tables will appear in the left column and in the wider right column.
    3. Check the table(s) you wish to truncate (delete data only).
    4. In the drop down box that initially says “With selected:” select “Empty” from this list.
    5. It will ask you if you really want to truncate the table(s). Check to make sure you selected the tables you really want to truncate.
    6. Click on Yes to truncate (delete data) from the table.

提交回复
热议问题