增加MySQL相关的Dockerfile

This commit is contained in:
virusdefender 2016-06-10 22:58:27 +08:00
parent f4251f7a9a
commit e040f3141c
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
FROM mysql:latest
RUN printf "\nserver-id=1\nlog-bin=binlog\nperformance_schema=OFF" >> /etc/mysql/my.cnf

View File

@ -0,0 +1,2 @@
开启了binlog, 保证数据安全
关闭了performance_schema=OFF, 避免MySQL占用过多的内存 见https://virusdefender.net/index.php/archives/471/