Using SSL with SQLAlchemy
问题 I've recently changed my project to use SQLAlchemy and my project runs fine, it used an external MySQL server. Now I'm trying to work with a different MySQL server with SSL CA, and it doesn't connect. (It did connect using MySQL Workbench, so the certificate should be fine) I'm using the following code: ssl_args = {'ssl': {'ca': ca_path}} engine = create_engine("mysql+pymysql://<user>:<pass>@<addr>/<schema>", connect_args=ssl_args) and I get the following error: Can't connect to MySQL server