Selecting the appropriate table type can also greatly optimize the retrieval speed and maximize the database performance. Select a table type using MySQL. Currently (version 3.23.5) You can choose between 4 available table formats from a speed point
MySQL databaseIs a small relational database management system, MySQL databaseOptimizationIt is a very important task in the MySQL database operation process. MySQL database optimization can simplify MySQL database operations.
Step 1:
1: high-speed
The general process of MySQL fault detection and correction (1) the general process of fault detection and correction is as follows:
◆ Check tables with errors. If the table check is successful, the task is completed. Otherwise, the database table
General process of MySQL fault detection and correction (2) check the database table
Myisamchk and isamchk provide table check methods that differ in the extent to which a thorough checklist is performed.
Standard method checklist
Generally, the
The solution to reduce such problems is to minimize the server power failure without reason. When the server is shut down, the mysql database is closed manually.
Let's take a look at this problem:
Can't open file: '×××. myi' (errno: 145). This
1, to optimize the table
2, Analysis of the table (analysis and storage of MyISAM and BDB table in the distribution of keys)
3, check the table (check the table error, and update the key for the MyISAM statistics)
4, repair the table (repair the
If you run the table check/repair program at the same time, you may not wantMySQLThe server and utility access a table at the same time. If both programs write data to the table, it will obviously cause a lot of trouble and even cause unexpected
If you run the check/fix for the table at the same time, you may not want the MySQL server and utility to access a table at the same time. If all two programs write data to a table, it's obviously a big hassle, and even unexpected things happen. If
The general process of MySQL fault detection and correction is as follows:
◆ Check tables with errors. If the table check is successful, the task is completed. Otherwise, the database table with errors must be repaired.
◆ Copy the table file before
This article mainly describes how to correctly repair damaged MySQL Data Tables. We all know that power failure or abnormal shutdown may lead to MySQL (the best combination with PHP) database Error. There are two main methods:
One method is to use
Because the operator a large number of deleted relationship table data up to 20 million rows, but MySQL does not automatically reclaim space, so decided to do defragmentation (first Test):
Myisamchk-r relationship
Under the MySQL run, the results
mysql| Data | database | Optimization decided to begin to learn Oracle, with MySQL has not been a short time, write these today is a MySQL trip to their own account of it. The following is just my personal experience in the process of using MySQL,
If you run the table's check/fix program at the same time, you may not want the MySQL server and utility to access a table at the same time. If two of programs write data to a table, it's obviously going to be a lot of trouble, and even unexpected
This error is the result of a typical MySQL table damage, the solution is to repair the table, this problem is often easy to MySQL, MySQL table and index damage is very high, but the repair is also very convenient, reduce this kind of problem occurs
I. after detecting the database of phpBB in MySQL, I found that there was a problem with the users table. I tried to repair it using myisamchk and found that the preset repair method was not available, add more-o parameters. When using myisamchk, it
For some time recently, company's server every once in a while (about 24 hours), will appear inaccessible situation, and then restart the server, everything is back to normal, has not known what is the problem, so asked the engine room engineer, he
MySQL optimization
Determined to start learning Oracle, with MySQL has been a short time, today write down this is a MySQL trip to their own an account of it. Here are just a few of my personal experience in the use of MySQL, perhaps there are many
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.