-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
I've recently been running into an issue where mysql_config_editor will emit a configuration file which includes quotes. myloginpath interprets the quotes as part of the value.
This issues is caused by using MySQL 8.0.24, which came out on 2021-4-20. Here's the relevant part of the changelog:
To enable use of spaces and other special characters within configuration values, mysql_config_editor now surrounds values it writes to the configuration file with double quote characters, and also escapes double quote characters used within values. (Bug #19953349, Bug #74691)
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-24.html
Here's an example session:
$ mysql_config_editor --version
mysql_config_editor Ver 8.0.25-0ubuntu0.20.10.1 for Linux on x86_64 ((Ubuntu))
$ mysql_config_editor set --login-path=test --host=foo
$ mysql_config_editor print --login-path=test
[test]
host = "foo"
$ python3
Python 3.8.6 (default, Jan 27 2021, 15:42:20)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import myloginpath
>>> myloginpath.parse('test')
{'host': '"foo"'}
Metadata
Metadata
Assignees
Labels
No labels