版权声明:作者:她如花似玉 转载请标明出处,原文地址: http://blog.csdn.net/qq_32566003 https://blog.csdn.net/qq_32566003/article/details/85609298
首先找到mysql 安装路径 例如我的C:\Program Files\MySQL\MySQL Server 5.7\bin
打开cmd 命令行 切换到安装路径下,
登录mysqlmysql -u root -p
SHOW GLOBAL VARIABLES LIKE '%log%';
日志文件路径
mysql> show variables like ‘general_log_file’;
错误日志文件路径
mysql> show variables like ‘log_error’;
慢查询日志文件路径
mysql> show variables like ‘slow_query_log_file’;