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.

After using pscale connect, cannot connect local mysql container #136

@morgs32

Description

@morgs32

Hopefully this can reproduce it:

My docker-compose.yml:

version: "3"

services:

  db:
    user: "1000:50"
    image: mysql:8.0.1
    ports:
      - "3306:3307"
    # command: --init-file /data/application/init.sql
    volumes:
      - ./_data/mysql:/var/lib/mysql
      # - ./init.sql:/data/application/init.sql
    environment:
      MYSQL_USER: user
      MYSQL_PASSWORD: password
      MYSQL_ROOT_PASSWORD: rpassword
      MYSQL_DATABASE: quantamarkets
  • I run docker-compose up db
  • Then mysql -u root -p rpassword -h 127.0.0.1 -P 3306 --protocol=tcp

And get this error:

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

Any clue?

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