【问题标题】:Mysql: What is the difference between "slow_query_log" vs "log_slow_queries"Mysql:“慢查询日志”与“日志慢查询”有什么区别
【发布时间】:2012-06-01 01:54:38
【问题描述】:

如果没有任何区别,为什么要有两个服务器参数来实现一种行为?

【问题讨论】:

    标签: mysql profiling server-variables


    【解决方案1】:

    log_slow_queries 在 MySQL 5.1.29 中被 slow-query-log 弃用。 MySQL 5.1 Reference Manual 有更多详细信息。

    【讨论】:

      【解决方案2】:

      来自 mysql 文档:

      --log-slow-queries 选项已弃用并被删除(连同 MySQL 5.6 中的 log_slow_queries 系统变量)。相反,使用 --slow_query_log 选项启用慢查询日志,--slow_query_log_file=file_name 选项设置慢查询日志文件名。

      请看这里:http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_log-slow-queries

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-08-21
        • 1970-01-01
        • 2012-07-27
        • 2016-07-21
        • 2016-07-19
        相关资源
        最近更新 更多