Repair all tables in one go

AMD picture AMD · Jan 3, 2011 · Viewed 264.7k times · Source

How to check all the tables in the database in one go?

Rather than typing the query check table ''tablename''; for all the tables one by one.

Is there any simple command like check all or anything like that?

Answer

Gu1234 picture Gu1234 · Jan 3, 2011

from command line you can use:

mysqlcheck -A --auto-repair

http://dev.mysql.com/doc/refman/5.0/en/mysqlcheck.html