Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix, root user #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

bug fix, root user #9

wants to merge 1 commit into from

Conversation

tm-sanjay
Copy link

MYSQL_USER: "root" this will cause an issue.
[ERROR] [Entrypoint]: MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user

the root will be automatically created https://stackoverflow.com/a/66910240/13577765

@ur2e
Copy link

ur2e commented Jul 31, 2023

  • docker-entrypoint.sh
if [ "$MYSQL_USER" = 'root' ]; then
                mysql_error <<-'EOF'
                        MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user
                            Remove MYSQL_USER="root" and use one of the following to control the root user password:
                            - MYSQL_ROOT_PASSWORD
                            - MYSQL_ALLOW_EMPTY_PASSWORD
                            - MYSQL_RANDOM_ROOT_PASSWORD
                EOF
fi

docker-library/mysql#750 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants