Skip to content
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

error: ssl_mode not supported by client library #439

Closed
thorstenkampe opened this issue Jul 4, 2020 · 2 comments
Closed

error: ssl_mode not supported by client library #439

thorstenkampe opened this issue Jul 4, 2020 · 2 comments

Comments

@thorstenkampe
Copy link

Describe the bug

I get an error trying to specify ssl_mode

To Reproduce

from MySQLdb import _mysql
_mysql.connect(user='root', passwd='password', ssl_mode='REQUIRED')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MySQLdb._exceptions.NotSupportedError: MySQL client library does not support ssl_mode specification

Environment

MySQL Client

  • OS: Windows 10

  • Python: Python 3.8.3 (vanilla install via Scoop)

  • Connector/C (e.g. Homebrew mysql-client 8.0.18): mysqlclient 2.0.1 (installed via pip)

>>> get_client_info()
'10.4.3'
@methane
Copy link
Member

methane commented Jul 4, 2020

Windows wheel uses MariaDB Connector/C because MySQL Connector/C doesn't support static link.
And MariaDB Connector/C doesn't have ssl_mode option.

@methane methane closed this as completed Jul 4, 2020
@thorstenkampe
Copy link
Author

thorstenkampe commented Jul 4, 2020

Installing via pip is the standard way to install mysqlclient on all platforms. I think it would make sense to update the documentation and mention that the Windows wheel does not support the ssl_mode option - especially since you seem to be the maintainer of the Windows PyPI build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants