|
HTTP,MySQL,Apache,PHP,FTP,Linux,域名注册,Server,SEO,google,FTP Jail,vsFTPD,qihoobot,BadBot,Ports,Network,Remove Pass-phase,SSL,Installation,缓存,Cache,Proftpd,Index,新闻组,Myspace,Discuz,IIS,Mambo,MySQL Remote
| 阅读上一个主题 :: 阅读下一个主题 |
| 留言 |
|
MySQL Slow Query Log File
|
|
| |
|
发布人: Mrs LA
发布于: 2007/02/17, 12:30 am
|
|
|
MySQL has a feature that allows you to log slow running queries to a file. To enable you just need to add some lines to your my.cnf file, and restart. Add the following:
log-slow-queries = /var/log/mysql/mysql-slow.log
long_query_time = 1
The above will log queries taking longer than one second to the specified log file.
You can read more in the MySQL Reference Manual
|
|
|
|
|
|
返回页首
|
|
 |
|
热门标签: HTTP(8), MySQL(7), Apache(5), PHP(4), FTP(2), Linux(2), 域名注册(2), Server(2), SEO(2), google(2), FTP Jail(1), vsFTPD(1), qihoobot(1), BadBot(1), Ports(1), Network(1), Remove Pass-phase(1), SSL(1), Installation(1), 缓存(1), Cache(1), Proftpd(1), Index(1), 新闻组(1), Myspace(1), Discuz(1), IIS(1), Mambo(1), MySQL Remote Access(1), 因特网(1)
|
相关搜索: mysql slow(23), mysql slow query log(17), mysql slow query(16), Slow Query Log(9), slow query(9), mysql slow log(9), mysql log(7), mysql query log(5), mysql log file(4), mysql log slow query(4), mysql(4), Where is the MySQL log file?(2), mysql slow.log(2), mysql slow.log 字段(2), mysql 查看 slow query(2), mysql 查看slow query(2), slow_query_log(2), mysql-slow-query(2), mysql-slow.log(2), slow_log(2)
|
|