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

Fix docker db error #286

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

Conversation

rm-yakovenko
Copy link
Contributor

@rm-yakovenko rm-yakovenko commented Jan 14, 2022

Fix docker db error

dbMain            |     Remove MYSQL_USER="root" and use one of the following to control the root user password:
dbMain            |     - MYSQL_ROOT_PASSWORD
dbMain            |     - MYSQL_ALLOW_EMPTY_PASSWORD
dbMain            |     - MYSQL_RANDOM_ROOT_PASSWORD

This should solve #284

`
dbMain            |     Remove MYSQL_USER="root" and use one of the following to control the root user password:
dbMain            |     - MYSQL_ROOT_PASSWORD
dbMain            |     - MYSQL_ALLOW_EMPTY_PASSWORD
dbMain            |     - MYSQL_RANDOM_ROOT_PASSWORD
`
@Bottelet
Copy link
Owner

Hi @rm-yakovenko . Sorry not sure i understand how that fixes it?

@rm-yakovenko
Copy link
Contributor Author

Hi @Bottelet!

The issue is in the default docker-compose configuration.

The db container cannot start because of the following error:

➜  DaybydayCRM git:(master) docker-compose up db
Creating dbMain ... done
Attaching to dbMain
dbMain            | 2022-01-28 09:10:06+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dbMain            | 2022-01-28 09:10:06+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
dbMain            | 2022-01-28 09:10:06+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dbMain            | 2022-01-28 09:10:06+00:00 [ERROR] [Entrypoint]: MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user
dbMain            |     Remove MYSQL_USER="root" and use one of the following to control the root user password:
dbMain            |     - MYSQL_ROOT_PASSWORD
dbMain            |     - MYSQL_ALLOW_EMPTY_PASSWORD
dbMain            |     - MYSQL_RANDOM_ROOT_PASSWORD

That leads to #284 (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.

None yet

2 participants