Scenario
- I run
pscale connect galaxy --port 3309 locally to connect to my PlanetScale DB
- I attempt to connect my T3 app using
import { connect } from "@planetscale/database";
Problem
- When I use
url to connect to my local db connection, it does not use the specified port - instead is uses port 443:
const connection = connect({
url: "mysql://root@127.0.0.1:3309"
});

- When I use
host & username to connect to my local db connection, it uses the correct port but it fails with a ERR_SSL_WRONG_VERSION_NUMBER status code
const connection = connect({
host: "127.0.0.1:3309",
username: "root"
});

I'd love to be able to use this package instead of prisma for my next project.
Anything that can be done to help here would be greatly appreciated!
Scenario
pscale connect galaxy --port 3309locally to connect to my PlanetScale DBimport { connect } from "@planetscale/database";Problem
urlto connect to my local db connection, it does not use the specified port - instead is uses port443:host&usernameto connect to my local db connection, it uses the correct port but it fails with aERR_SSL_WRONG_VERSION_NUMBERstatus codeI'd love to be able to use this package instead of
prismafor my next project.Anything that can be done to help here would be greatly appreciated!