2021年11月19日

摘要: 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 星期六男爵 阅读(47) 评论(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 星期六男爵 阅读(110) 评论(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 星期六男爵 阅读(369) 评论(0) 推荐(0) 编辑

导航