mysql 无法连接问题处理

master
Chopper 2021-05-19 17:57:24 +08:00
parent 8b68c9c26f
commit 73e47cf37b
1 changed files with 1 additions and 2 deletions

View File

@ -4,10 +4,9 @@ services:
restart: always
image: mysql
container_name: mysql
network_mode: host
volumes:
- ../volumes/data/mysqldata:/var/lib/mysql
- ../config/my.cnf:/etc/my.cnf
- ./config/my.cnf:/etc/my.cnf
# 数据库还原目录 可将需要还原的sql文件放在这里
- ./init/mysql:/docker-entrypoint-initdb.d
environment: