I want to disable binary logging in order to diagnose some uninteresting issue. I've never used replication anyway—it's enabled only because it's the default in MySQL/8. Google shows like 20 different ways to do it and none seem to work in my set up.
The official manual says:
To disable binary logging, you can specify the
--skip-log-binor--disable-log-binoption at startup.
It runs as Windows service, installed with the official MySQL Installer application, so I used regedit (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL80\ImagePath), but either flags, in any location, either standalone or with =1, prevent the service from starting yet log file doesn't include any error message.
I've also read you can have this in defaults file:
[mysqld]
skip-log-bin
Server starts, bug binary logging remains enabled.
Setting an MYSQLD_OPTS environment variable with --skip-log-bin=1 is ignored (perhaps it's exclusive to some Linux distro).
How do you disable binary logging in MySQL/8 on Windows?
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL80\ImagePath
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" MySQL80
C:\ProgramData\MySQL\MySQL Server 8.0\my.ini:
[client]
port=3306
[mysql]
no-beep
[mysqld]
port=3306
datadir=C:/ProgramData/MySQL/MySQL Server 8.0/Data
default_authentication_plugin=mysql_native_password
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
log-output=FILE
general-log=0
general_log_file="FOO.log"
slow-query-log=1
slow_query_log_file="FOO-slow.log"
long_query_time=10
# One of my failed attempts:
skip-log-bin