当前位置:Gxlcms > 数据库问题 > How to see log files in MySQL?

How to see log files in MySQL?

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

To enable general query log add following

general_log_file        = /var/log/mysql/mysql.log
general_log             = 1

To enable Slow Query Log add following

log_slow_queries       = /var/log/mysql/mysql-slow.log
long_query_time = 2
log-queries-not-using-indexes

How to see log files in MySQL?

标签:tps   word   tor   opera   tac   lang   str   dex   not   

人气教程排行