SSL Broken from 2.2.2 on #698
Replies: 2 comments 14 replies
-
This is not supported by mysqlclient. PyMySQL does.
Although mysql/mysql-server@4788470#diff-5a38ed61b700819a507d12aa9c204d8c5b0d99a894217e1e2bd5ce5ac7af25cb |
Beta Was this translation helpful? Give feedback.
-
I noticed something similar with my Django project. Version 2.2.2 and above seems to disable the SSL functionality which in turn prevents my application from connecting to the database. I'm using the below options in my database connection, and if I use Version 2.2.1 of mysqlclient and remove the "'ssl':True" setting, I get the same error as if I'm using Version 2.2.2 (and above) with "'ssl':True" included in the options. 'OPTIONS': {'charset': 'utf8mb4', 'init_command':"SET sql_mode='STRICT_TRANS_TABLES'; SET foreign_key_checks = 0;", 'ssl':True} The bottom line of the error log being given is as follows (with some details edited for confidentiality): django.db.utils.OperationalError: (1045, "Access denied for user 'xxx000000'@'00.00.0.00' (using password: YES)") |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When building a new docker image today - we did not have mysqlclient pinned and our SSL connection to mysql broke with the following error
relevant requirements.txt
relevant code
This works on 2.2.1 but is broken on 2.2.2+/
This commit looks to be the culprit 720b804
Environment
No response
How did you install libmysqlclient libraries?
No response
What version of mysqlclient do you use?
No response
Docker command to start MySQL server
No response
Minimum but complete code to reproduce
Schema and initial data required to reproduce.
Commands, and any other step required to reproduce your issue.
No response
Beta Was this translation helpful? Give feedback.
All reactions