Hi,
To check/repair MySQL database which using the database engine MyISAM, we can use the command "myisamchk" . Syntacx is as given below :
To check the status :
myisamchk /var/lib/mysql/DATABASE_NAME/*.MYI
This will displays the tables that should be repaired.
To repair the whole database,
myisamchk --silent --force --fast --update-state /var/lib/mysql/DATABASE_NAME/*.MYI
To repair a single table:
myisamchk -r /var/lib/mysql/DATABASE_NAME/TABLE_NAME.MYI
To check/repair MySQL database which using the database engine MyISAM, we can use the command "myisamchk" . Syntacx is as given below :
To check the status :
myisamchk /var/lib/mysql/DATABASE_NAME/*.MYI
This will displays the tables that should be repaired.
To repair the whole database,
myisamchk --silent --force --fast --update-state /var/lib/mysql/DATABASE_NAME/*.MYI
To repair a single table:
myisamchk -r /var/lib/mysql/DATABASE_NAME/TABLE_NAME.MYI
No comments:
Post a Comment