Bug #118608 Workbench writes invalid config 'audit-log' instead of 'audit_log'
Submitted: 9 Jul 0:35 Modified: 9 Jul 12:21
Reporter: Andrew Cao Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:8.0.42 (Workbench Version) OS:Windows (Windows 11 24H2 26100.4652)
Assigned to: CPU Architecture:x86 (AMD Ryzen 7 9700X 8-Core Processor 3.80 GHz)
Tags: audit_log, configuration, my.ini, workbench

[9 Jul 0:35] Andrew Cao
Description:
The issue arises when enabling the 'audit-log' setting via MySQL Workbench. 
Instead of writing audit_log=ON in the configuration file (my.ini), it incorrectly writes audit-log=ON. 
This is an invalid configuration that does not match the correct syntax expected by MySQL.

How to repeat:
Open MySQL Workbench as Administrator.

Navigate to Options File > Logging.

Enable the 'audit-log' option.

Save the configuration.

Check the my.ini file — you will find that it contains the incorrect line audit-log=ON instead of the valid audit_log=ON.

Suggested fix:
The Workbench should write the correct configuration key audit_log=ON instead of audit-log=ON. 
This can be fixed by ensuring that Workbench follows the correct syntax for the configuration setting when writing to the my.ini file.
[9 Jul 12:21] MySQL Verification Team
Hello Andrew,

Thank you for the bug report.
Imho this is duplicate of Bug #98256, please see Bug #98256.

Regards,
Ashwini Patil