The following articles mainly describe how to correctly repair corrupted MySQL Data Tables. There are two methods: checktable and repairtable, and myisamchk and isamchk, mySQL (the best combination with PHP) database errors caused by power failure
Summary of the restoration process of corrupted data in the mysql database this document is a summary of the original practice of Hewei, a master colleague. The process is really wonderful. Finally, the repair of damaged databases has achieved a
id=164 the MySQL database error is a very common problem due to a power outage or an abnormal shutdown. There are two ways to use MySQL's check table and Repair table SQL statement, and the other is to use the multiple myisamchk provided by MySQL to
Method One, modify directly in command mode
1, Myisamchk
To fix the MySQL database, there is also a command: Mysqlcheck
Mysqlcheck-a-c-o-r–all-databases-uroot-p//This command is the best way to optimize all DB databases.
The meaning of the
Due to temporary power failure, kill-9 can be used to stop the MySQL service process. all these may destroy MySQL data files. If the service is changing the file when it is disturbed, the file may be in an incorrect or inconsistent state. This
The restoration of corrupted data in the mysql database is shared with the restoration of corrupted data in the MySQL database for your reference. if you have similar problems in the future, you can avoid detours, solve the problem as soon as
Introduction of Mysqlcheck
The Mysqlcheck client can examine and repair the MyISAM table. It can also optimize and analyze tables.
Mysqlcheck function is similar to MYISAMCHK, but its work is different. The main difference is that when the MYSQLD
0x001 Issue BackgroundMySQL executes the relevant MySQL command (we performed, show procedure status) When prompted Mysql.proc table crashed, cannot be repaired (marked as crashed and last (automatic?) Repair failed)Error message: MySQL table is
Ext: 77199194First, the problem descriptionA MySQL that runs online today crashes.Review the error log as follows:-----------------------------------------161108 11:36:45 Mysqld_safe starting mysqld daemon with databases from/usr/ local/mysql/var2017
The following articles mainly describe the actual recovery process of some data corruption in the MySQL database. A few days ago, due to data corruption in the MySQL database, I tried the actual data restoration operation, sort out the following
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.