Home

Public Domain Photos

Free for commercial redistribution and alteration (All photo from http://publicphoto.org/ is 100% free for use)

MYSQL – Check, Repair and Optimize All Tables in All Databases

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

mysql logo
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 ... ]

Leave a Reply

 

Powered by WordPress ::