Skip to content

Local Connection Fails #104

Description

@techgerm

Scenario

  1. I run pscale connect galaxy --port 3309 locally to connect to my PlanetScale DB
  2. I attempt to connect my T3 app using import { connect } from "@planetscale/database";

Problem

  1. 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"
});

Screenshot 2023-04-09 at 8 13 19 PM

  1. 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"
});

Screenshot 2023-04-09 at 8 12 30 PM

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions