This is a simple PHP script to empty all tables in a MySQL database. This script first will list all tables in a database using 'SHOW TABLES' statement then it will empty each table using 'TRUNCATE TABLE' statement. About TRUNCATE Statement For an InnoDB table before version 5.0.3, … [Read more...] about How to Empty All Tables in a MySQL Database with PHP
Recent Comments