您的位置:首页 > 数据库 > MySQL

mysql 开启日志方法

2011-07-25 19:11 295 查看
直接在my.ini最后加上
#Enter a name for the binary log. Otherwise a default name will be used.
#log-bin=
#Enter a name for the query log file. Otherwise a default name will be used.
#log=
#Enter a name for the error log file. Otherwise a default name will be used.
#log-error=
#Enter a name for the update log file. Otherwise a default name will be used.
#log-update=

将你需要开启的日志类型前面#去掉并加上文件名,如我要开启log 日志只需
log=E:/phpworks/mysql/logs/mysql.log

之后记得重启mysql服务,
windows下重启方法,在命令行输入:
net stop mysql

net start mysql
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: