MySQL8.0 关闭二进制日志

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

posted @ 2018-08-07 14:36  日拱一卒,聚沙成塔  阅读(1971)  评论(3编辑  收藏  举报