console
・ ・ ・
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'root'@'%'
docker-compose.yaml
version: "3"
services:
mysql:
・ ・ ・
volumes:
- mysql-data:/var/lib/mysql
- ./build/mysql/init:/docker-entrypoint-initdb.d
environment:
MYSQL_DATABASE: sample
MYSQL_USER: test # root -> test
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: test
TZ: Asia/Tokyo
J'ai utilisé root
pour MYSQL_USER
, donc je l'ai changé en root
Recommended Posts