Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying database that requires SSL #5

Open
samaybar opened this issue Nov 15, 2022 · 0 comments
Open

Querying database that requires SSL #5

samaybar opened this issue Nov 15, 2022 · 0 comments

Comments

@samaybar
Copy link

When trying to connect to PlanetScale using the mysql2 library in Deno (https://deno.land/x/[email protected]) I can't figure out how not to get the server does not allow insecure connections, client must use SSL/TLS error message. The same code works fine when running in Node using mysql2 library.

The connection string I am using looks like:

{
host: hostname,
port: 3306,
user: username,
password: password,
database: database,
ssl: {rejectUnauthorized: true}
}

It appears that Deno does not recognize that SSL is to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant