MySQL Lock Overview The MyISAM storage engine only supports table locks, which is the only lock type supported in the first few versions of MySQL. As applications' requirements for transaction integrity and concurrency continued to increase, MySQL began to develop a transaction-based storage engine. Later, the BDB storage engine that supports page locks and the InnoDB storage engine that supports row locks gradually appeared (InnoDB is actually a separate company and has now been acquired by Oracle). However, MyISAM table locks are still the most widely used lock type. This section will introduce the use of MyISAM table locks in detail. Table lock contention on your system can be analyzed by examining the table_locks_waited and table_locks_immediate status variables: You can analyze the row lock contention on your system by checking the InnoDB_row_lock status variable: Unlock The first show processlist; Find the lock process and kill its ID; The second mysql>UNLOCK TABLES; Lock table Lock the data table to prevent the table from being updated during the backup process mysql>LOCK TABLES tbl_name READ; Add a write lock to the table: mysql>LOCK TABLES tbl_name WRITE; You may also be interested in:
|
<<: How to set up jar application startup on CentOS7
>>: HTML5 and jQuery to implement preview code examples before uploading local pictures
MySQL View the maximum number of connections and ...
Maybe everyone knows that js execution will block...
The Docker images we usually build are usually la...
Concurrency Functions time for i in `grep server ...
mysql-5.7.17-winx64 is the latest version of MySQ...
Application of HTML and CSS in Flash: I accidental...
Tetris is a very classic little game, and I also ...
Recently, I made a function similar to shake, usi...
1. Check the synchronization status of A and B da...
To understand load balancing, you must first unde...
Only show the top border <table frame=above>...
1. Test environment name Version centos 7.6 docke...
View the engines supported by the current databas...
need: The backend returns an array object, which ...
Preface Here are the steps to install and configu...