Bug #111085 The sql-mode from my.ini is not read
Submitted: 19 May 2023 10:18 Modified: 19 May 2023 12:48
Reporter: Damian Winnicki Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:8.0.32 OS:Windows (Microsoft Windows 11 Pro)
Assigned to: CPU Architecture:x86
Tags: WBBugReporter

[19 May 2023 10:18] Damian Winnicki
Description:
The sql-mode value set inside my.ini file is not applied after PC restart.

How to repeat:
Update my.ini with the setting:
sql-mode=""
[19 May 2023 10:18] Damian Winnicki
My file my.ini is located as: C:\ProgramData\MySQL\MySQL Server 8.0\my.ini
[19 May 2023 12:48] MySQL Verification Team
Hi Mr. Winnicki,

Thank you for your bug report.

The location that you are mentioning is not a default location for my.ini files. You should consider using the option "--defaults-file=......" in order for our server to read the configuration file of your choice.

You can also set that variable (sql_mode) in any session or in your application.

Not a bug.