摘要: TableA+----+------+| c1 | c2 |+----+------+| 3 | NULL || 4 | NULL || 5 | NULL || 11 | 12 || 12 | 13 |+----+------+一 在c1上无索引,innodb_locks_unsafe_for_binlog开关被关闭。1 1.0 select * from ta where c1=11在read_repatable isolation level的时候,另一个session是可以随便插入的任何值。 1.1 如果是select * from ta where c1=11 lock in shar 阅读全文
posted @ 2012-08-20 18:25 Jack204 阅读(4108) 评论(0) 推荐(0) 编辑
摘要: 打开开关innodb_lock_monitor用来查看一条语句执行的时候,使用命令show engine innodb status对系统中的lock信息。开启mysql> use marketingDatabase changedmysql>mysql> create table innodb_lock_monitor(x int) engine=innodb;Query OK, 0 rows affected (0.08 sec)mysql> exitBye关闭mysql> use marketingReading table information for 阅读全文
posted @ 2012-08-20 15:43 Jack204 阅读(10866) 评论(0) 推荐(1) 编辑