Skip to content

数据库无法连接上#856

Open
Junior233 wants to merge 1 commit intothx:masterfrom
Junior233:master
Open

数据库无法连接上#856
Junior233 wants to merge 1 commit intothx:masterfrom
Junior233:master

Conversation

@Junior233
Copy link

错误如下:
[Entrypoint]: 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

解决办法见:
https://stackoverflow.com/questions/66831863/mysql-docker-container-keeps-restarting

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.

1 participant