瀏覽代碼

mariadb container create multiple database.

Shao Yu Lung 8 年之前
父節點
當前提交
e1e9830348

+ 1 - 0
mariadb/docker-entrypoint-initdb.d/.gitignore

@@ -0,0 +1 @@
+*.sql

+ 8 - 0
mariadb/docker-entrypoint-initdb.d/createdb.sql.example

@@ -0,0 +1,8 @@
+###
+### Copy createdb.sql.example to createdb.sql
+### then uncomment and set database name to create you need databases
+###
+
+#CREATE DATABASE IF NOT EXISTS `dev_db_1` ;
+#CREATE DATABASE IF NOT EXISTS `dev_db_2` ;
+#CREATE DATABASE IF NOT EXISTS `dev_db_3` ;