爱滋美食网
您的当前位置:首页mysql配置查询配置_MySQL

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慢查询,分析查询语句

显示全文