docker/mariadb/README.md
2022-04-18 11:21:20 +08:00

20 lines
614 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 构建 mariadb 镜像
## 定制
- 安装 mariadb
- 固定一些常用配置
- 第一次启动 mysql 时,会执行如下操作
- 初始化数据目录后
- 自动创建一个只有 shutdown 权限的普通用户,该用户用于优雅停止 mysql__不要修改该用户任何信息__
- 自动执行 {mysql-log}/init_sql/ 下的 xxxx.sql 文件
## 外挂目录和文件
- /etc/my.cnf: mysql 配置文件
- /var/lib/mysql: mysql 数据目录
- /var/lib/mysql-bin: mysql binlog 目录
- /var/log/mysql: mysql 日志目录
## 案例
- [Demo/SingleNode/](Demo/SingleNode/): 部署 mariadb 单点