MySQL-如何找出事务的隔离级别 [英] Mysql - How to find out isolation level for the transactions
本文介绍了MySQL-如何找出事务的隔离级别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道为当前的Mysql数据库设置了什么隔离级别.怎么找到呢?我尝试在Google上搜索它,但没有找到它.
解决方案
我在Google上进行了更多搜索,发现如果拥有MySQL 5.1+,则可以通过在下面的查询中触发来找出隔离级别
>
SELECT * FROM information_schema.session_variables
WHERE variable_name = 'tx_isolation';
I want to know what isolation level is set for current Mysql database. How can find it out? I tried searching it on the google but did not find it.
解决方案
I did a bit of more searching on the google and found out that if have MySQL 5.1+ then you can find out the isolation level by firing below query
SELECT * FROM information_schema.session_variables
WHERE variable_name = 'tx_isolation';
这篇关于MySQL-如何找出事务的隔离级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文