Konsole
・ ・ ・
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
Ich habe root
für MYSQL_USER
verwendet, also habe ich es in root
geändert
Recommended Posts