首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

mysql 日志文件的状态为什么总是OFF,该怎么解决

2012-03-08 
mysql 日志文件的状态为什么总是OFF我用mysql show variables like log_% 查看日志文件的状态,结果显

mysql 日志文件的状态为什么总是OFF
我用mysql> show variables like 'log_%'; 查看日志文件的状态,结果显示
variables value
log_bin OFF
log_bin_trust_function_creators OFF
log_error .\sehre5hy.err
log_queries_not_using_indexes OFF
log_slave_updates OFF
log_slow_queries OFF
log_wornings 1
 

我百度了很多,都说要在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-bin= log= log-error= log-update= 后面我都加的是data的地址,"C:/Program Files/MySQL/MySQL Server 5.0/Data/",后面跟自己起的日志文件的名字,然后重启数据库,还是off状态。怎么回事?


[解决办法]
1 那你试试直接log-bin后面不跟路径

热点排行