摘要: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
阅读全文
摘要:RC隔离级别下最容易出现的死锁。 CREATE TABLE `t5` (`id` int(11) NOT NULL,`name` int(11) DEFAULT NULL,PRIMARY KEY (`id`),UNIQUE KEY `uk_name` (`name`)) ENGINE=InnoDB
阅读全文
摘要:set global tx_isolation='read-committed'; set global innodb_print_all_deadlocks=on; set global innodb_status_output_locks=ON; RC隔离级别。 CREATE TABLE `t1
阅读全文
摘要:https://dev.mysql.com/doc/refman/5.6/en/innodb-locking.html 锁级别 锁名 锁模式 锁范围 表级别 读意向锁 lock mode IS 表级别 写意向锁 lock mode IX 行级别 读锁 lock S 行级别 写锁 lock X 行级别
阅读全文
摘要: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
阅读全文
摘要:死锁信息: LATEST DETECTED DEADLOCK 2021-11-10 10:48:46 7f84bdac8700 *** (1) TRANSACTION: TRANSACTION 82430953, ACTIVE 133 sec starting index read mysql ta
阅读全文