On Linux servers you can repair all MySQL databases on the server using the following command.

(logged in as root)

myisamchk -r /var/lib/mysql/*/*.MYI