首頁  >  文章  >  資料庫  >  mysql配置查询配置_MySQL

mysql配置查询配置_MySQL

WBOY
WBOY原創
2016-06-01 13:11:16928瀏覽

命令行登入.

#开启慢查询

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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn