use mysqlcheck with --optimize and --databases combination. mysqlcheck is a command-line interface for administrators
mysqlcheck -uroot -p --optimize --databases myDatabase
mysqlcheck -uroot -p --optimize --databases myDatabase
Optimizing a Table
It's simple and straightforward to optimize a table in MySQL
Optimize table TABLE_NAME
No comments:
Post a Comment