mysql日志文件在哪
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql日志文件在哪相关的知识,希望对你有一定的参考价值。
登录mysql终端 日志文件路径 mysql> show variables like ‘general_log_file‘; +------------------+------------------------------------+ | Variable_name | Value | +------------------+------------------------------------+ | general_log_file | /usr/local/mysql/data/localhost.log | +------------------+------------------------------------+ 1 row in set (0.00 sec) 错误日志文件路径 mysql> show variables like ‘log_error‘; +---------------+------------------------------------+ | Variable_name | Value | +---------------+------------------------------------+ | log_error | /usr/local/mysql/data/localhost.err | +---------------+------------------------------------+ 1 row in set (0.00 sec) 慢查询日志文件路径 mysql> show variables like ‘slow_query_log_file‘; +---------------------+-----------------------------------------+ | Variable_name | Value | +---------------------+-----------------------------------------+ | slow_query_log_file | /usr/local/mysql/data/localhost-slow.log | +---------------------+-----------------------------------------+ 1 row in set (0.01 sec)
以上是关于mysql日志文件在哪的主要内容,如果未能解决你的问题,请参考以下文章