This post originated from an RSS feed registered with Web Buzz
by Angsuman Chakraborty.
Original Post: MySQL Tip: How To Check, Repair & Optimize All Tables in All Databases
Feed Title: Simple Thoughts on Web Technologies
Feed URL: http://tech.gaeatimes.com/index.php/search/internet/feed/
Feed Description: News and views as a Software Architect and Entrepreneur on Web Technologies.
Here is a simple command to auto repair, check and optimize all the tables in all databases running on a MySQL server:
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases
mysqlcheck is available in MySQL 3.23.38 and later.
mysqlcheck uses the SQL statements CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE in a convenient way for the [...]