... slow-query-log #先开启慢查询日志 slow_query_log_file=/data/mysqld-slow.log #然后指定慢查询日志的文件 log-slow-admin-statements #记录执行慢的那些管理操作 ...
基于1个网页-相关网页
For example, simple EXPLAIN statements in the queries and a large amount of query log analysis will slow down the queries.
例如,查询中简单的explain语句和大量的查询日志分析将使查询变得缓慢。
You can configure mysqld to log slow queries in the aptly named slow query log.
您可以配置mysqld将这些慢速查询记录到适当命名的慢速查询日志中。
Listing 1 shows the configuration required in my.cnf to enable the slow query log.
清单1给出了要启用慢速查询日志需要在my . cnf中所做的配置。
应用推荐