DaybydayCRM icon indicating copy to clipboard operation
DaybydayCRM copied to clipboard

Fix docker db error

Open rm-yakovenko opened this issue 3 years ago • 2 comments

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

rm-yakovenko avatar Jan 14 '22 14:01 rm-yakovenko

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

Bottelet avatar Jan 26 '22 17:01 Bottelet

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 https://github.com/Bottelet/DaybydayCRM/issues/284#issuecomment-1010579677

rm-yakovenko avatar Jan 28 '22 09:01 rm-yakovenko