Juju075 / symfony-devops

DevOps project
0 stars 0 forks source link

Migration - app-database [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! #9

Closed Juju075 closed 1 year ago

Juju075 commented 1 year ago

app-database [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.

question does i need to ref to .env.local on en_file


docker-compose environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: ${DATABASE_NAME} MYSQL_USER: ${DATABASE_USER} MYSQL_PASSWORD: ${DATABASE_PASSWORD}


.en.local DATABASE_HOST=localhost DATABASE_PORT=3306 DATABASE_NAME=symfony-devops DATABASE_USER=root DATABASE_PASSWORD=root


DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8&charset=utf8mb4"

DATABASE_URL=mysql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}?serverVersion=5.7

Juju075 commented 1 year ago

ok - container is running just check credential