Mysql 8.0+ 查询数据库事务隔离级别

根据慕课网课程中的方法,查询事务隔离级别使用:

select @@tx_isolation;

我在sequal pro中,却提示错误:Unknown system variable 'tx_isolation'

查询了官方文档,在8.0+就已经抛弃了这样的查询方法,https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html

在MySQL 8.0.3 中,该变量已经被 transaction_isolation 替换了。

最新的查询方法有多种,下面提供2种:

1、select @@transaction_isolation;

2、show variables like 'transaction_isolation';

原文地址:https://www.cnblogs.com/lxmajs/p/10277901.html