In order to better optimize MySQL in high concurrency, it is necessary to understand the locking table mechanism when MySQL query is updated.I. OverviewMySQL has three levels of Lock: page level, table level, row level.MyISAM and MemoryStorageThe
Mysql monitoring methods are roughly divided into two categories: 1. connect to the mysql database and use showstatus, showvariables, and flushstatus to view various mysql performance indicators. 2. directly use mysqladmin to view its performance
Periodic analysis Table
ANALYZE [Local | No_write_to_binlog] TABLE tbl_name [, Tbl_name]
Use this statement to parse and store the keyword distribution for a table. During profiling, a table is locked with a read lock. This is useful for MyISAM,
Differences between mysql status and variables First, you can use the following two commands to view the corresponding mysql system parameters.Show status like '% abc % ';Show variables like '% abc % '; However, many people do not understand the
MySQL常用指令,java,php程序员,数据库工程师必备。程序员小冰常用资料整理MySQL common commands (for reference)The most common display commands are:1. Display the list of databases.show databases;2. Display the data table in the library:Use MySQL;Show tables;3, display the
1. Full backup and incremental backup 1.1 full-scale backupFull-volume data is all the data in the database, and a full backup is the backup of all the data in the database.Back Up all libraries:mysqldump -uroot -p123456 -S /data/3306/mysql.sock -F -
mysql> show global status; Can list MySQL server running various status values, my personal preferred usage is show status like ' query value% '; One, slow query mysql> show variables like '%slow% '; +------------------+-------+ | variable_name
The following error occurs in the MySQL log file. crash does not occur in the MySQL table. It is generally caused by stopping MySQL when the database is updated.Check table syntaxCheck table tbl_name [, tbl_name]... [option]...Option = {QUICK | FAST
Periodic analysis TableANALYZE [LOCAL | No_write_to_binlog] TABLE tbl_name [, Tbl_name]This statement is used to analyze and store the keyword distribution of a table. During parsing, the table is locked with a read lock. This is useful for MyISAM,
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.