
mysql
看山也看水
这个作者很懒,什么都没留下…
展开
-
Mysql连接报错Communications link failure
Mysql连接报错Communications link failure原创 2022-10-31 17:48:09 · 591 阅读 · 1 评论 -
Mysql unique索引注意点
mysql unique key为复合索引,包含多个字段时,当某个字段值为空值,可以多次重复插入,不会判断是否有重复。建议:unique key 包含字段需要设定一个默认值原创 2021-03-18 09:17:52 · 240 阅读 · 0 评论 -
Mysql-explain-Impossible WHERE noticed after reading const tables
测试mysql中的最左匹配原则时,出现这样一条提示信息没有表明type(ref/All)是否使用索引等信息,因此了解一下。上图是没有匹配到相关数据,贴一张匹配到数据的信息展示,发现type是const表结构如下:CREATE TABLE `runtime_image_used` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `image_name` varchar(512) DEFAULT NULL , `image_tag` va原创 2020-12-07 18:06:33 · 373 阅读 · 0 评论