dos1
mysql -uroot -proot
mysql > use test;
mysql > set autocommit = 0;
mysql > insert into account values(11,’john’,’000’)
mysql > commit
//最小的隔离级别,没有效果需要重启dos
mysql > set transaction isolation level read uncommitted;
mysql > set autocommit = 0;
mysql > insert into account values(11,’jhok,’8989’’)
dos2
mysql -uroot -proot
mysql > use test;
mysql > select @@tx_isolation
SERIALIZABLE
mysql > set transaction isolation level read uncommitted;
//第二种设置方式,没有效果需要重开dos
mysql > set global transaction isolation level read uncommitted;
mysql > set autocommit = 0;
mysql > select * from account;