输入banner图图片脚本导航/分类

mysql配置查询配置_MySQL

命令行登入.

#开启慢查询

mysql>show variables like '%long%';

mysql>set global long_query_time=2;

mysql>show variables like '%slow%';

slow_query_log off #if slow_query_log is off

mysql>set global show_query_log='ON';

slow_query_log ON



参考:linux下开启mysql慢查询,分析查询语句