Skip to content

turn validate_password plugin on then cannot init the root password #1075

@lystormenvoy

Description

@lystormenvoy

Hi
I am using mysql:5.7.44 image.
I mount my.cnf into the container with

validate-password=FORCE_PLUS_PERMANENT
plugin-load-add=validate_password.so

Then I use docker logs mysql it print

1819 Your password does not satisfy the current policy requirements
Aborting

My command to create container is

docker run -d --name mysql -v /app/mysql/conf:/etc/mysql -v /app/mysql/logs:/var/log/mysql -e "MYSQL_ROOT_PASSWORD=vavretsamA@#1" --restart always --network=host mysql:5.7.44

When I comment the config about validate password it will work.
After it work and init the user, I uncomment the config, and change the password to vavretsamA@#1
It will change successfully.

Can I turn on validate password when the mysql init?

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