Home » Archive

Articles in the MySQL Category

Bookmarks, Linux, MySQL »

[12 Feb 2010 | No Comment | 175 views]

Linux command to auto repair, check & optimize all the tables in all databases from mysql server: (v3.23.38 and later)
mysqlcheck -u {user} -p{passwd} –auto-repair –check –optimize –all-databases
or the shorter version
mysqlcheck -u {user} -p{passwd} -Aor

where:

{user} – user full access to the database ( can be root )
{passwd} – password for {user} acount

mysqlcheck can not repair read-only tables.
[ Short URL ... ]