Skip to content

Docker Compose mysql MYSQL_ROOT_PASSWORD not work #180

@iawia002

Description

@iawia002

here is my config file:

mysql:
  image: mysql:latest
  environment:
    - MYSQL_ROOT_PASSWORD=test
    - MYSQL_DATABASE=test

I start docker, when i try to connect mysql using test as password, failed.
the password is still root

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