增加MySQL相关的Dockerfile
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
FROM mysql:latest
|
||||
RUN printf "\nserver-id=1\nlog-bin=binlog\nperformance_schema=OFF" >> /etc/mysql/my.cnf
|
||||
@@ -0,0 +1,2 @@
|
||||
开启了binlog, 保证数据安全
|
||||
关闭了performance_schema=OFF, 避免MySQL占用过多的内存 见https://virusdefender.net/index.php/archives/471/
|
||||
Reference in New Issue
Block a user