11 2021 档案

摘要:CREATE TABLE `t` (`id` int(11) NOT NULL,`c` int(11) DEFAULT NULL,`d` int(11) DEFAULT NULL,PRIMARY KEY (`id`),KEY `c` (`c`)) ENGINE=InnoDB DEFAULT CHAR 阅读全文

posted @ 2021-11-19 18:02 星期六男爵 阅读(82) 评论(0) 推荐(0)

摘要:RC隔离级别下最容易出现的死锁。 CREATE TABLE `t5` (`id` int(11) NOT NULL,`name` int(11) DEFAULT NULL,PRIMARY KEY (`id`),UNIQUE KEY `uk_name` (`name`)) ENGINE=InnoDB 阅读全文

posted @ 2021-11-19 17:59 星期六男爵 阅读(146) 评论(0) 推荐(0)

摘要:set global tx_isolation='read-committed'; set global innodb_print_all_deadlocks=on; set global innodb_status_output_locks=ON; RC隔离级别。 CREATE TABLE `t1 阅读全文

posted @ 2021-11-19 17:56 星期六男爵 阅读(433) 评论(0) 推荐(0)

摘要:https://dev.mysql.com/doc/refman/5.6/en/innodb-locking.html 锁级别 锁名 锁模式 锁范围 表级别 读意向锁 lock mode IS 表级别 写意向锁 lock mode IX 行级别 读锁 lock S 行级别 写锁 lock X 行级别 阅读全文

posted @ 2021-11-18 19:01 星期六男爵 阅读(46) 评论(0) 推荐(0)

摘要:CREATE TABLE `t` ( `id` int(11) NOT NULL, `c` int(11) DEFAULT NULL, `d` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `c` (`c`) ) ENGINE=InnoDB DEFAUL 阅读全文

posted @ 2021-11-17 16:07 星期六男爵 阅读(45) 评论(0) 推荐(0)

摘要:死锁信息: LATEST DETECTED DEADLOCK 2021-11-10 10:48:46 7f84bdac8700 *** (1) TRANSACTION: TRANSACTION 82430953, ACTIVE 133 sec starting index read mysql ta 阅读全文

posted @ 2021-11-10 11:20 星期六男爵 阅读(130) 评论(0) 推荐(0)

导航