docker mysql开启binlog
docker-compose
version: "3.1"
services:
db:
image: mysql:5.7.34
volumes:
- ./data/db:/var/lib/mysql
- ./data/logs:/var/log/mysql
- ./my.cnf:/etc/mysql/my.cnf
restart: always
environment:
MYSQL_ROOT_PASSWORD: abc123456
TZ: Asia/Shanghai
# MYSQL_DATABASE: wordpress
# MYSQL_USER: wordpress
ports:
- 3306:3306
修改mysql文件
[mysq
共有 0 条评论