-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
read_default_file doesn't work for SSL parameters #1020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Would you try to replace this "-" with "_"? PyMySQL/pymysql/connections.py Line 261 in f24cb9a
|
Thanks. Changing the config file's fields from "_" to "-" like
made it work. The MySQL CLI supports either dash or underscore there (as dones Ruby's mysql), so I think it makes sense for PyMySQL to support either one too. |
Dear @ryantm, |
@alimp5 as far as MySQL is concerned they are the same, but this library treats them differently. |
Describe the bug
I am trying to use
read_default_file
to configure the pymysql connectionTo Reproduce
Use pymysql version 1.0.2.
Have a mysql config file like:
Code:
and if the user grant requires SSL it fails to connect.
If I change the code to
It connects
Expected behavior
The ssl parameters don't have to be separately specified.
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: