当前位置:网站首页>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;边栏推荐
- 打开服务器上的 IncludeExceptionDetailInFaults (从 ServiceBehaviorAttribute 或从 <serviceDebug> 配置行为)以便将异常信息发送回
- Children's programming electronic society graphical programming level examination scratch level 1 real problem analysis (multiple choice) June 2022
- 数据库性能测试(mysql)
- Design principle of infrared circuit of single chip microcomputer
- 少儿编程 电子学会图形化编程等级考试Scratch一级真题解析(选择题)2022年6月
- 『HarmonyOS』工程的创建与虚拟机的使用
- Development stage of source code encryption technology
- 28. Implement strStr()实现 strStr()
- dev treelist 常用用法小结
- 『期末复习』16/32位微处理器(8086)基本寄存器
猜你喜欢
随机推荐
Do you think you are a reliable test / development programmer? "Back to the pot"? Surface and reality
Conda 虚拟环境envs目录为空
How to open an account online for Guohai Securities? Is it safe to open an account
Which "digital currencies" can survive this winter? 2020-03-30
"Niuke | daily question" inverse Polish expression
mysql优化之show profile的使用及分析
【Star项目】小帽飞机大战(四)
How does the national standard gb28181 protocol easygbs platform realize device video recording and set streaming IP?
Map dictionary and constraints of go
【图像去噪】基于双立方插值和稀疏表示实现图像去噪matlab源码
Go channel
『HarmonyOS』DevEco的下载安装与开发环境搭建
Overview of image classification of vision transformer must read series
Slice and array of go
XSS labs (1-10) break through details
[fault diagnosis] bearing fault diagnosis based on Bayesian optimization support vector machine with matlab code
7. Reverse integer integer
Experimental flags: --disable_ admission_ control=false --enable_ rm=false --llama_ callback_ port=28000
【毕业季_进击的技术er】送别过去两年迷茫的自己。重整旗鼓,大三我来啦
信号处理系统综合设计-求解器函数的设计(连续和离散时间系统)

![Rust language - slice type (&[u8])](/img/d1/68c73c8b34b848212083c08df3137f.png)







