mysql 日志log

my.ini

log-error=D:/phpStudy/PHPTutorial/MySQL/log/error.log
log=D:/phpStudy/PHPTutorial/MySQL/log/mysql.log
long_query_time=2
log-slow-queries=D:/phpStudy/PHPTutorial/MySQL/log/slowquery.log

然而在mysql 10版主中log 无效

通过phpmyadmin 设置变量 general  和 general log 来设置log。

不过在my.ini没找到对应变量。

后续

原文地址:https://www.cnblogs.com/ashe666/p/9964040.html