How do I configure PyMySQL connect for SSL?

前端 未结 1 1199
不知归路
不知归路 2021-02-20 14:41

I\'m trying to connect my database using SSL with PyMySQL, but I can\'t find good documentation on what the syntax is.

These credentials work in Workbench and with the C

相关标签:
1条回答
  • 2021-02-20 15:31

    Thanks for the help everyone. The syntax listed in the question is right, but the server I was attempting a connection to was using a non-standard port. I needed to add

    port = db_creds['port']

    Thanks, MannyKary, for the clue.

    0 讨论(0)
提交回复
热议问题