ITeye博客

监控mysql数据

bayaci · 2012-02-09 13:38 · Markdown

[mysqld]
long_query_time=1
log-slow-queries=/var/log/mysql/log-slow-queries.log

You must create the file manually and change owners this way:

mkdir /var/log/mysql
touch /var/log/mysql/log-slow-queries.log
chown mysql.mysql -R /var/log/mysql

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。