Default MySQL config file /etc/mysql/my.cnf installed by some debian package using APT often set log_bin variable, so binlog are enabled:
log_bin = /var/log/mysql/mysql-bin.log
When I want to disable binary logging on such installation, comment out the line in my.cnf works of course, but I wonder if there is a way to disable binary logging by setting explicitely log_bin to OFF, in a debian style, I mean in an included file like /etc/mysql/conf.d/myCustomFile.cnf, so default my.cnf is not changed and can be easily updated by apt, if necessary.
I tried "log_bin = 0", "log_bin = OFF" or "log_bin =" but none works...
log_bin = OFF
doesn't work, see also forums.mysql.com/read.php?10,592679,592685. Correct answer isdisable_log_bin
. See also stackoverflow.com/questions/76056936/…