mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 00:22:03 +00:00
增加MySQL相关的Dockerfile
This commit is contained in:
parent
f4251f7a9a
commit
e040f3141c
2
dockerfiles/mysql/Dockerfile
Normal file
2
dockerfiles/mysql/Dockerfile
Normal file
@ -0,0 +1,2 @@
|
||||
FROM mysql:latest
|
||||
RUN printf "\nserver-id=1\nlog-bin=binlog\nperformance_schema=OFF" >> /etc/mysql/my.cnf
|
2
dockerfiles/mysql/README.md
Normal file
2
dockerfiles/mysql/README.md
Normal file
@ -0,0 +1,2 @@
|
||||
开启了binlog, 保证数据安全
|
||||
关闭了performance_schema=OFF, 避免MySQL占用过多的内存 见https://virusdefender.net/index.php/archives/471/
|
Loading…
Reference in New Issue
Block a user