当前位置:网站首页>MySQL isolation level transactions
MySQL isolation level transactions
2022-07-26 06:50:00 【Leon_ Jinhai_ Sun】
# Inquire about mysql Version of
select version();
# Query the isolation level of the transaction
select @@tx_isolation;
SELECT @@transaction_isolation;
set session tx_isolation='REPEATABLE-READ';
set session tx_isolation='read-committed';
# Set the global transaction isolation level spring The default isolation level is mysql Set the isolation level of (spring The value of is default or -1)
set global transaction_isolation ='read-committed';
show global variables like '%isolation%';
# Query log path
show VARIABLES like 'log_%';
# Query transactions
SELECT * FROM information_schema.INNODB_TRX;
# Query timeout
SHOW VARIABLES LIKE 'innodb_lock_wait_timeout';
# Set timeout
SET innodb_lock_wait_timeout=6;
# Query the log of the last deadlock
show engine innodb status
A client :
select version();
select @@autocommit;
set session autocommit = 0;
set session tx_isolation='REPEATABLE-READ';
set session tx_isolation='SERIALIZABLE';
START TRANSACTION;
SELECT * from cloudwalk_auth ;
COMMIT;
select @@tx_isolation;
B client :
select @@autocommit;
set session autocommit = 0;
set session tx_isolation='REPEATABLE-READ';
set session tx_isolation='SERIALIZABLE';
start TRANSACTION;
UPDATE cloudwalk_auth set branch_id=-1;
SELECT * from cloudwalk_auth;
COMMIT;
select @@tx_isolation;边栏推荐
- 供应链的多目标协同决策
- Go channel
- Binary tree knowledge summary
- 【图像去噪】基于双立方插值和稀疏表示实现图像去噪matlab源码
- Slice and array of go
- Facing the rebound market, how do we operate? 2020-03-21
- Go language configuration vscade
- C language introduction practice (7): switch case calculation of days in the year (normal year / leap year calculation)
- [hardware ten treasures] - 7.1 [dynamic RAM] key points of DDR hardware design
- Which "digital currencies" can survive this winter? 2020-03-30
猜你喜欢

XSS labs (1-10) break through details

Summarize and learn STM32 to create project template

String and memory functions

【图像去噪】基于双立方插值和稀疏表示实现图像去噪matlab源码

堆排序(heap-sort)

【图像隐藏】基于混合 DWT-HD-SVD 的数字图像水印方法技术附matlab代码

7. Reverse Integer整数反转

MySQL Foundation (II) -- MySQL Foundation
![Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card](/img/51/a5282b657b1dfed2dac476c1efee2d.png)
Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card

buuReserve(4)
随机推荐
Summarize and learn STM32 to create project template
SQL optimization scheme
[image hiding] digital image watermarking method technology based on hybrid dwt-hd-svd with matlab code
『牛客|每日一题』模板栈
Summary of common usage of dev treelist
Celery takes up large memory - memory leak
[Web3 series development tutorial - create your first NFT (4)] what can NFTs bring to you
JS date details, string to date
The creation of "harmonyos" project and the use of virtual machines
Realize the full link grayscale based on Apache APIs IX through MSE
Database and the future of open source
Downloadutilse tool class without error
MySQL Foundation (II) -- MySQL Foundation
CS5801_ HDMI to EDP advantage replaces lt6711a solution
Which "digital currencies" can survive this winter? 2020-03-30
数据库中varchar和Nvarchar区别与联系
UIToolkit中显示汉字
Address resolution ARP Protocol
归并排序(merge_sort)
Regular expressions and calling related functions in C language