From e040f3141cedca9f4b25a831f41d43bd888de3f9 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Fri, 10 Jun 2016 22:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0MySQL=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E7=9A=84Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dockerfiles/mysql/Dockerfile | 2 ++ dockerfiles/mysql/README.md | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 dockerfiles/mysql/Dockerfile create mode 100644 dockerfiles/mysql/README.md diff --git a/dockerfiles/mysql/Dockerfile b/dockerfiles/mysql/Dockerfile new file mode 100644 index 00000000..131c45eb --- /dev/null +++ b/dockerfiles/mysql/Dockerfile @@ -0,0 +1,2 @@ +FROM mysql:latest +RUN printf "\nserver-id=1\nlog-bin=binlog\nperformance_schema=OFF" >> /etc/mysql/my.cnf \ No newline at end of file diff --git a/dockerfiles/mysql/README.md b/dockerfiles/mysql/README.md new file mode 100644 index 00000000..14ce4b1d --- /dev/null +++ b/dockerfiles/mysql/README.md @@ -0,0 +1,2 @@ +开启了binlog, 保证数据安全 +关闭了performance_schema=OFF, 避免MySQL占用过多的内存 见https://virusdefender.net/index.php/archives/471/ \ No newline at end of file