2020年3月26日

MYSQL索引失效的各种情况小结

摘要: 一、对列使用函数,该列的索引将不起作用。 如:substring(字段名,1,2)='xxx'; 二、对列进行运算(+,-,*,/,! 等),该列的索引将不起作用。 如:select * from test where id-1=9;//错误的写法; select * from test where 阅读全文

posted @ 2020-03-26 08:44 范兵 阅读(3764) 评论(0) 推荐(0) 编辑

Mysql 关闭日志记录

摘要: 关闭 bin 日志,将下面三项配置注释掉: #log_bin = mysql-bin #binlog_format = mixe #expire_logs_days = 10 关闭 log 日志,将下面三项配置注释掉: #log-output=FILE #general-log=1 #general 阅读全文

posted @ 2020-03-26 06:43 范兵 阅读(2210) 评论(0) 推荐(0) 编辑

导航