Portal Home > Knowledgebase > General > MySQL Tips


MySQL Tips




For hosting clients with ssh (command line) access, you may follow these steps:

Backup your /var/lib/mysql dir and then run this command:

find /var/lib/mysql/* -type f -name *.MYI -exec myisamchk {} \;

This will repair all your mysql DB tables

***

Also you can run:

mysqlcheck --all-databases -r
mysqlcheck --all-databases -a
mysqlcheck --all-databases -o

First repairs the databases
Second Analyzes the databases
Third Optimizes the databases

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Upload via FTP (Views: 1751)
.htaccess tutorials (Views: 2946)
My Website is Down! (Views: 1559)