ABHIONLINUX
Site useful for linux administration and web hosting

Showing posts with label myisamchk. Show all posts
Showing posts with label myisamchk. Show all posts

2009/10/31

How to repair mysql database

Repairing MyISAM mySQL Tables/Databases:

cd /var/lib/mysql/DBNAME
#^ Please note that we assume your mySQL data directory is /var/lib/mysql

myisamchk *.MYI


Repairing ISAM mySQL Tables/Databases:

cd /var/lib/mysql/DBNAME
#^ Please note that we assume your mySQL data directory is /var/lib/mysql

isamchk *.MYI
OR

To repair your enite database,

mysqlcheck -r your_database
mysqlcheck -o your_database