The Mysqlcheck client tool can examine and fix myisam tables, and can also optimize and analyze tables.
In fact, it integrates the functions of check, repair, analyze, optimize in MySQL tools,
There are 3 different ways to invoke Mysqlcheck:
The mysqlcheck client tool can check and repair MyISAM tables, and optimize and analyze tables.
In fact, it integrates the functions of check, repair, analyze, and optimize in mysql,
There are three methods to call mysqlcheck:
Shell> mysqlcheck
This article is for the South African ant book " Step linux-Second Edition " -8.3.6 of Reading notesInstalling keepalived Software on DB1 and DB2Install the Build tool first# yum Install gcc* gcc-c++ autoconf automakeUpload keepalived-1.2.19.tar.gz
In most cases, the database is damaged only when the index file is damaged, and the real data is damaged rarely. Most forms of database corruption can be easily repaired.
As with the previous verification, there are three methods to fix the
Maybe many people have encountered an error message like Can 'topenfile: '[Table] mytable. myi', but they don't know how to solve it. Let's introduce it as follows,
Many people may have encountered an error message like Can't open file: '[Table]
In most cases, the database is damaged only when the index file is damaged, and the real data is damaged rarely. Most forms of database corruption can be easily repaired.As with the previous verification, there are three methods to fix the
1. Optimize the table (the main function of the optimization table is to eliminate the space waste caused by the deletion or update)2. Analyze the table (analyze the distribution of keywords, analyze and store the distribution of keys in MyISAM and
In most cases, the destruction of the database simply means that the index file has been corrupted, and that the real data has been destroyed very little. The repair of most forms of database destruction is fairly straightforward.
As with the
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
Guide to MySQL upgrade
Http://blog.sina.com.cn/s/blog_5a8b8eb80100ld7a.html
We recommend that you upgrade the version from one released version to another. For example, to upgrade MySQL 3.23 to MySQL 4.0, instead of directly upgrading to MySQL 4.1
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.