Skip to content

Docker MySQL #1107

@Sjaz17

Description

@Sjaz17

My console:
PS C:\Users\Asus> docker run --name mysql -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root --restart unless-stopped -v mysql:/var/lib/mysql mysql
9e55dffb3ecaf762c0ea1f58f8590bb05f14c85cc2d4de37181e500c4ae3a63f
PS C:\Users\Asus> docker exec -it mysql mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
PS C:\Users\Asus>

How to solve this error?

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