mysql 慢日志配置

查看是否开启慢日志功能 >show variables like '%quer%'; long_query_time    3s 后面是时间 slow_query_log  ON 是开启 OFF是关闭 修改mysql 配置文件 ubuntu的mysql5.9 #vim /etc/mysql/mysql.conf.d/mysqld.cnf 添加下面数据 slow_query_log=TRUE slo
相关文章
相关标签/搜索