我在my-default.ini中设置如下:
[mysqld]
log_bin = D:\log\binlog
log_bin_index = D:\log\binlog
其中的路径 D:\log\binlog、D:\log\binlog都是存在的,我执行show variables like '%log_bin%';命令时显示log_bin为OFF
[mysqld]
log_bin = D:\log\binlog
log_bin_index = D:\log\binlog
其中的路径 D:\log\binlog、D:\log\binlog都是存在的,我执行show variables like '%log_bin%';命令时显示log_bin为OFF
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.[mysqld]
log-bin = D:\log\binlog
log-bin-index = D:\log\binlog# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.# These are commonly set, remove the # and set as required.
# basedir =C:\Program Files\MySQL\MySQL Server 5.6
# datadir =C:\Program Files\MySQL\MySQL Server 5.6\data
# port = .....
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
D:\log\binlog、D:\log\binlog都是存在的 -------------------------- 这个就更有问题了,参数配置的是文件名,你弄个已经存在的目录和这个文件名一样,文件应该建不起来吧?