-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Milestone
Description
Issue with user account that uses SHA256 Password.
I was trying to connect to mysql 5.7.16 docker container with a user account I created with a SHA256 password and I am getting this error.
File "/usr/local/lib/python3.5/site-packages/pymysql/__init__.py", line 90, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 688, in __init__
self.connect()
File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 906, in connect
self._request_authentication()
File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 1123, in _request_authentication
auth_packet = self._process_auth(plugin_name, auth_packet)
File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 1185, in _process_auth
raise err.OperationalError(2059, "Authentication plugin '%s' not configured" % plugin_name)
pymysql.err.OperationalError: (2059, "Authentication plugin 'b'sha256_password'' not configured")
Process finished with exit code 1
Starting at line 1147 it appears this is where the decision is made based on the authentication types but I don't see any that mention SHA256
Executable script to reproduce (for bugs)
#Open database connection
db = pymysql.connect("mysql","admin","password")
#prepare a cursor object using cursor() method
cursor = db.cursor()
Your Environment
- Operating System and version:
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
Linux 701fd9099c55 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 GNU/Linux
mysql 5.7.16 docker container
- PyMySQL Version used:
PyMySQL==0.7.9
Metadata
Metadata
Assignees
Labels
No labels