support server_public_key_path option. (#744)

fix #682
This commit is contained in:
Inada Naoki
2024-11-12 20:52:23 +09:00
committed by GitHub
parent 89511eef44
commit feea60c00e
3 changed files with 44 additions and 17 deletions

View File

@ -137,6 +137,10 @@ class Connection(_mysql.connection):
Since mysqlclient 2.2.4, ssl=True is alias of ssl_mode=REQUIRED
for better compatibility with PyMySQL and MariaDB.
:param str server_public_key_path:
specify the path to a file RSA public key file for caching_sha2_password.
See https://dev.mysql.com/doc/refman/9.0/en/caching-sha2-pluggable-authentication.html
:param bool local_infile:
enables LOAD LOCAL INFILE; zero disables