windows下:
Sql代码
# 在[mysqld] 中輸入
#log
log-error="F:/logs/mysql_error.log"
log="F:/logs/mysql.log"
long_query_time=2
log-slow-queries= "F:/logs/mysql_slowquery.log"
log-error="F:/logs/mysql_error.log"
log="F:/logs/mysql.log"
long_query_time=2
log-slow-queries= "F:/logs/mysql_slowquery.log"
Sql代码
# 在[mysqld] 中輸入
#log
log-error="F:/logs/mysql_error.log"
log="F:/logs/mysql.log"
long_query_time=2
log-slow-queries= "F:/logs/mysql_slowquery.log"
my.ini中添加如下代码:#log
log-error="F:/logs/mysql_error.log"
log="F:/logs/mysql.log"
long_query_time=2
log-slow-queries= "F:/logs/mysql_slowquery.log"