Using SSL with SQLAlchemy

前端 未结 3 1791
梦毁少年i
梦毁少年i 2021-02-13 04:42

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 wit

3条回答
  •  不思量自难忘°
    2021-02-13 04:48

    If you just connect from a client machine with an ssl connection (so you don't have access to the cert and key), you could simple add ssl=true to your uri.

    Edit:

    For example: mysql_db = "mysql+mysqlconnector://:@/?ssl=true"

提交回复
热议问题