This commit is contained in:
2022-04-18 11:21:20 +08:00
commit 45a7af638f
210 changed files with 8997 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# 部署 MySQL 单节点
- 按实际环境修改
- docker-compose.yml
- mysql/my.cnf
- 创建目录
```
grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
```
- 启动
```
docker-compose up -d
```
- 查看日志,直至出现 "MySQL is ready for connections."
```
docker-compose logs mysql
```