当前位置:Gxlcms > 数据库问题 > mysql:general_log 日志、数据库线程查询、数据库慢查询

mysql:general_log 日志、数据库线程查询、数据库慢查询

时间:2021-07-01 10:21:17 帮助过:20人阅读

set slow_query_log=‘ON‘;      //启用慢查询  

 

set global long_query_time=2;          //设置成2秒,加上global,下次进mysql已然生效  

 

 

参考:http://blog.csdn.net/zyz511919766/article/details/49335949
  http://renxiangzyq.iteye.com/blog/835397

  http://blog.51yip.com/mysql/972.html

mysql:general_log 日志、数据库线程查询、数据库慢查询

标签:sql语句   ase   log   http   查询   general   table   variables   ssl   

人气教程排行