The way to reduce this type of problem is to minimize the loss of power to the server and shut down the MySQL database manually when shutting down the server.
Here's a look at this question:
Can ' t open file: ' xxx. Myi ' (errno:145), this error
The general process of fault detection and correction for a table is as follows:
Check for errors in the table. If the table checks through, complete the task, or you must fix the database table that is wrong.
Copy the table files before starting
In windows, mysql may encounter the prompt "Incorrectkeyfilefortable: trytoreeffecrit". Common Causes of mysql table destruction: 1. Data File Corruption caused by sudden server power failure. 2. Force Shutdown without shutting down the mysql
The first is the fastest, which is used to fix the most common problems, and the last is the slowest, which is used to fix problems that cannot be fixed by other methods.Check and repair MySQL Data FilesIf the above method cannot repair a damaged
How to lock a MySQL database table
There are mainly a variety of methods to prevent client requests from interfering with each other or mutual interference between servers and maintenance programs. If you close the database, you can ensure that
REPAIRTABLE syntax in MySQL database introduction bitsCN.com
REPAIRTABLE syntax in MySQL database
[Pre] REPAIR [LOCAL | NO_WRITE_TO_BINLOG] TABLE [/pre] [pre] tbl_name [, tbl_name]… [QUICK] [EXTENDED] [USE_FRM] [/pre] repair table is used to
1. Why back up the database?
Backup is the most important and easy to ignore for databases. Unexpected events may cause serious losses.
The more important the data is, the more frequently the data changes, and the more frequently backup is
Type = MyISAM and engine = MyISAM are statements used to set the database storage engine.(In earlier versions, MySQL uses type instead of engine (for example, type = MyISAM ).MySQL 5.1 supports this syntax for backward compatibility, but type is
Problem analysis
Error causes, some netizens say is frequent query and update [datasheet] table caused by indexing error, because my page is not static generation, but dynamic page, so I agree with this argument. It is also said that the MySQL
The Configparse module is used to parse the configuration fileConfiguration file[default]port= 3306socket=/tmp/mysql.sock[mysqldump]max_allowed_packet = 16m[myisamchk]key_buffer_size = 256Msort_ Buffer_size = 256mread_buffer = 2mwrite_buffer =
The specific error is as follows:Table '. \tablename\posts ' is marked as crashed and should be repairedNote that the Forum post table posts is flagged with a problem and needs to be repaired. I remember having had similar problems before, but just
It is a good idea to establish a database table maintenance specification on a regular basis, instead of checking the database table until the problem arises. Taking into account the creation of a schedule for preventive maintenance to assist with
Mysql full-text index solution (to) MySQL supports full-text indexing and searching since 3.23.23.
Full-text index is used to create an index, and full-text search is used to query the index.
LIKE uses Regular Expression for query.
MySQL full-text
Yesterday when the backend program read the database information, the Log Report related data table can not read and write data, into the MySQL database found table './wordpress/wp_posts ' is marked as crashed and should be repaired Error because
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
The following article describes how to correctly master the characteristics of Dynamic tables in MySQL databases. It can be said that dynamic tables are frequently used in MySQL databases, therefore, it is also important to master the dynamic tables
Related Articles: how to conduct MySQL database table Fault Detection how to fix MySQL database tables how to lock MySQL database tables how to maintain MySQL Database Log Files create a database table maintenance specification on a regular basis
Fast insertion of large data volumes in MySQLMethod andStatement OptimizationThis is what we will introduce in this article. Next we will introduce them one by one, hoping to get some benefits for you!
INSERT statement speed
The time required to
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.