2
0
mirror of https://github.com/lanjelot/patator synced 2024-11-16 06:15:24 +00:00
This commit is contained in:
lanjelot 2022-01-07 14:49:42 +10:00
parent c112a2aa1d
commit a93ae7a252
No known key found for this signature in database
GPG Key ID: 87DE33D13B2E287A

View File

@ -3535,7 +3535,10 @@ class MySQL_login:
try:
with Timing() as timing:
fp = _mysql.connect(host=host, port=int(port), user=user, passwd=password, connect_timeout=int(timeout))
if PY3:
fp = _mysql.connect(host=host, port=int(port), user=user, password=password, connect_timeout=int(timeout))
else:
fp = _mysql.connect(host=host, port=int(port), user=user, passwd=password, connect_timeout=int(timeout))
resp = '0', fp.get_server_info()