方法1:生成清空所有表的SQL

select CONCAT('TRUNCATE TABLE ',table_name,';') from information_schema.tables where TABLE_SCHEMA = 'db1';

 

方法二:用navicat,每个表 右键 清空表