DenMaSeno 9 年之前
当前提交
5a35699f69
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 3 0
      Dockerfile
  2. 3 0
      init-db.sql

+ 3 - 0
Dockerfile

@@ -0,0 +1,3 @@
+FROM mysql/mysql-server:5.7.12
+
+ADD init-db.sql /docker-entrypoint-initdb.d/init-db.sql

+ 3 - 0
init-db.sql

@@ -0,0 +1,3 @@
+CREATE DATABASE IF NOT EXISTS `demo`;
+
+GRANT ALL ON `demo`.* TO 'demo'@'%' IDENTIFIED BY 'dodolduren';