Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Usage description in README misses flag? #122

Description

@voigt

Hi,

first of all, thank you for this tool - it was exactly what I was looking for. However, It took me an unnecessarily long time to get it running, following the description in the README.

The README states, that I have to spawn the proxy like this and connect with MySQL client:

docker run -p 127.0.0.1:3306:3306 planetscale/pscale-proxy \
  --host 0.0.0.0 \
  --org "$PLANETSCALE_ORG" \
  --database "$PLANETSCALE_DATABASE" \
  --branch "$PLANETSCALE_BRANCH" \
  --service-token "$PLANETSCALE_SERVICE_TOKEN" \
  --service-token-name "$PLANETSCALE_SERVICE_TOKEN_NAME" 

Following this instructions, sql-proxy complained that it could not connect to the host on :3307. I was able to fix it by providing the --remote-host flag and setting the host explicitly.

I don't know how pscale-proxy is supposed to work, but I somehow expected that it would "magically find" its host. As long as it doesn't do so, I'd suggest mentioning this in the guide.

Kind regards and keep up the great work!

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