You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, you need to create a global variable with Engine. create_engine accepts additional configuration for connection, which needs to be used in that case.
You can prepare the database string as the following example: db_connect_string='mysql://<user>:<pswd>@<db server>:3306/<database>'
After that SSL certificates along with engine creation could be defined as it's listed below:
I'm trying to connect to planetscale's mysql database, but I can't get the connection working.
They offer a snippet of code, on how to connect to them using different programming languages.
For example in python:
I have no idea where to pass the ca thing. My database string is the following:
mysql://8jdabgcbksmalfucug29:************@eu-central.connect.psdb.cloud/default?ssl=true
There's a similar string for nodejs, in their documentation similar to mine:
mysql://8jdabgcbksmalfucug29:************@eu-central.connect.psdb.cloud/default?ssl={"rejectUnauthorized":true}
The text was updated successfully, but these errors were encountered: