XXX will be replaced with the database name, and then execute SQL, the results will come out a copy of the database TRUNCATE can perform all the tables.
select CONCAT('truncate table XXX.',TABLE_NAME,';') FROM information_schema.TABLES WHERE TABLE_SCHEMA='XXXX';