Repairing all MySQL databases

To repair all MySQL databases on the server, follow these steps over SSH.

  1. Stop MySQL:

    /etc/rc.d/init.d/mysql stop
    
  2. Repair all databases:

    myisamchk -r /var/lib/mysql/*/*.MYI
    
  3. Start MySQL:

    /etc/rc.d/init.d/mysql start
    
Was this article helpful?