myisamchk

The myisamchk utility comes with a standard MySQL server installation, and can check, repair and optimize MyISAM tables faster than the CHECK TABLE, REPAIR TABLE and OPTIMIZE TABLE SQL commands.

See also