drop table if exists t1; set timeout to 10s set global ob_trx_timeout = 10000000; create table t1(c1 int primary key, c2 int); insert into t1 values(1,1); insert into t1 values(2,2); insert into t1 values(3,3); create 2 sessions trx timeout begin; insert into t1 values(4,4); insert into t1 values(5,5); insert into t1 values(6,6); commit; select * from t1; c1 c2 1 1 2 2 3 3 4 4 5 5 6 6 begin; insert into t1 values(7,7); insert into t1 values(8,8); insert into t1 values(9,9); insert into t1 values(10,10); commit; ERROR 40000: Transaction rollbacked select * from t1; c1 c2 1 1 2 2 3 3 4 4 5 5 6 6 trx idle timeout begin; insert into t1 values(11,11); insert into t1 values(12,12); ERROR 25000: Transaction timeout occurred, please rollback the transaction, set the variable ob_trx_timeout to a larger value and then restart the transaction commit; ERROR 40000: Transaction rollbacked select * from t1; c1 c2 1 1 2 2 3 3 4 4 5 5 6 6 test two users set global ob_trx_timeout = 100000000;