首页 > 代码库 > mysql日志文件在哪
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日志文件在哪
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。