Binary logging is enabled by default (the log_bin
system variable is set to ON). The exception is if you use mysqld to initialize the data directory manually by invoking it with the --initialize
or --initialize-insecure
option, when binary logging is disabled by default. It is possible to enable binary logging in this case by specifying the --log-bin
option.
To disable binary logging, you can specify the --skip-log-bin
or --disable-log-bin
option at startup. If either of these options is specified and --log-bin
is also specified, the option specified later takes precedence.
配置文件中加--skip-log-bin或者是--disable-log-bin