You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MariaDB 10.6.7
Windows 11 23H2
Python 3.12
Django 5.1.2
How did you install libmysqlclient libraries?
No response
What version of mysqlclient do you use?
2.2.5
Docker command to start MySQL server
Have a local version of MariaDB installed on a Windows machine (seem to be Windows related)
Minimum but complete code to reproduce
importMySQLdbdb=MySQLdb.connect(host="127.0.0.1", port=3306, user="foo", password="P@ssw0rd", database="some_sb")
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"D:\Local_Development\CellLineDatabase\venv-cell-line-db\Lib\site-packages\MySQLdb\__init__.py", line121, inConnectreturnConnection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^File"D:\Local_Development\CellLineDatabase\venv-cell-line-db\Lib\site-packages\MySQLdb\connections.py", line195, in__init__super().__init__(*args, **kwargs2)
MySQLdb.OperationalError: (2026, 'TLS/SSL error: SSL is required, but the server does not support it')
Schema and initial data required to reproduce.
CREATEUSER 'foo'@'localhost' IDENTIFIED BY 'P@ssw0rd';
GRANT ALL PRIVILEGES ON some_sb.* TO 'foo'@'localhost' WITH GRANT OPTION;
CREATEDATABASEsome_sb;
Commands, and any other step required to reproduce your issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
In encountered the problem described in https://stackoverflow.com/questions/79113919/ssl-is-required-but-the-server-does-not-support-it-django. Basically with the newest mysqlclient version TLS encrypted connections to databases are enforced. Even the proposed solution with setting
'ssl_mode': 'DISABLED'does not work. When downgrading to 2.2.4 all is fine.Environment
MariaDB 10.6.7
Windows 11 23H2
Python 3.12
Django 5.1.2
How did you install libmysqlclient libraries?
No response
What version of mysqlclient do you use?
2.2.5
Docker command to start MySQL server
Have a local version of MariaDB installed on a Windows machine (seem to be Windows related)
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
All reactions