Can I use a different async-tls runtime for rocket sqlx? #2390
Replies: 2 comments 1 reply
-
As an update - I got my connection working by changing the db_pools EDIT: Please use |
Beta Was this translation helpful? Give feedback.
-
Note that combining two different async runtimes ( |
Beta Was this translation helpful? Give feedback.
-
I am currently trying to connect to a remote MySQL database (hosted on GCP) through rocket. The DB url
Rocket.toml
is in the following format:url = "mysql://user:pass@IP:3306/db_name
However, I am facing an
InvalidDNSNameError
error while trying to run. Looking into this, it seems its an issue with rustls not supporting direct IPs (Causing the DNS error (launchbadge/sqlx#1095)). Looks like a possible solution is to change the runtime tonative-tls
. Is there a way to do this with rocket's sqlx?Beta Was this translation helpful? Give feedback.
All reactions