Establish a database table maintenance specification
It is a good idea to perform a database table check on a regular basis rather than waiting for the problem to occur. Consideration should be given to establishing a schedule of preventative
Optimizing MySQL database queryThe simplest and safest format, which is the fastest in the disk format. Speed comes from the ease with which data can be found on disk. When the lock has an index and the static format something is, it's very simple,
Symptoms of damage
A typical symptom of a damaged table is as follows:1. When selecting data from a table, you get the following error: Incorrect key file for table: ' ... '. Try to repair it2. The query cannot find rows in the table or return
First, how to set?Click {full-Text search} at the end to set the full-text index, different MySQL version names may be different.Second, set the conditions1. The storage engine for the table is MyISAM, and the default storage engine InnoDB does not
MySQL FAQ and application skills summary, mysql application skills
Preface
In the daily development or maintenance of MySQL, it is often difficult to avoid some problems or faults, such as lost passwords and table damage. Summarize the common
[MySQL] Quick Solution for "is marked as crashed and shoshould be retried red" faults, crashedretries red
The specific error is as follows:Table '. \ mysql \ proc' is marked as crashed and shoshould be retried red
My solution:Find the
Recently, one Discuz! The "Thetableisfull" prompt appears when the forum of an old user replies. it literally means that the data table is full. Since few developers encounter a single table that exceeds 4 GB, discussions between friends can only
Mysql is installed with rpm. After installation, the files are scattered in several directories, and you do not know which directory to specify when installing php. The following is the result of rpm-qlmysql-community-server. {Code...} mysql is
1. myisamchkTo use myisamchk, you must temporarily stop the MySQL server. For example, we want to repair the discuz database. Perform the following operations:# Service mysql stop (stop MySQL );# Myisamchk-r/absolute path of the database file/* MYI#
Few developers encounter situations where a single table exceeds 4 GB. Therefore, discussions between friends can only provide peripheral information. However, with the continuous total price of data streams, 4G capacity is a matter of time. This
After using MySQL for a long time, some problems may occur in the database. Most problems can be solved quickly through simple operations. The following describes two methods to quickly repair the MySQL database.
After using MySQL for a long time,
1. Canrsquo; tconnecttoMySQLserveronlsquo; localhostrsquo; (10061) Translation: cannot connect to mysql Analysis on localhost: This description
1. Canrsquo; t connect to MySQL server on lsquo; localhostrsquo; (10061) Translation: cannot connect to
MYSQL Query Optimization: effectively loading data
Sometimes we need to load a large amount of data into the data table. the batch loading method is more efficient than loading one record, because MySQL does not need to refresh the index every time
If there is a problem with the datasheet, you can use the--recover--quick parameter to do the patching work:
Linux#myisamchk--recover--quick Tbl_name
Linux#isamchk--recover--quick Tbl_name
If the above method does not solve the problem, you can
When we use PHPMyAdmin to browse the database, we sometimes find that the Collation items of some MyISAM tables are displayed as "inUse ", which indicates that the table is damaged. Even if "inThe word "use" cannot indicate that the table is in good
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
MySQL sometimes because of power off or other causes of the database corruption, the wrong message is as follows:
Mysql:can ' t Open file: ' Sdb_sessions. Myi '. (errno:145)
For more information, and the Support Center at
We can use MySQL's own
Symptom of table corruption
A typical symptom of a damaged table is as follows:1. When selecting data from a table, you get the following error:Incorrect key file for table: ' ... '. Try to repair it2. The query cannot find rows in the table or
mysql| Data | database
[Summary]:mysql is a GPL-compliant open source software, under the Linux platform it is lamp (lamp in English is "light" meaning, but in the IT industry is certainly not that simple meaning.) This term is very popular in
One, Can ' t connect to MySQL server on ' localhost ' (10061)?Translator: Can't connect to MySQL on localhost? Analysis: This indicates that the "localhost" computer is present, but the MySQL service is not available on this machine. Need to start
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.