doc: 格式化数据库脚本

This commit is contained in:
Argo Zhang 2019-10-05 20:36:12 +08:00
parent d8db6ff9ce
commit 5399f00f5a
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#! /bin/bash
# init mongodb data
mongo ./init.js
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"

View File

@ -1,3 +1,5 @@
#! /bin/bash
mysql -e "drop database if exists BootstrapAdmin; create database BootstrapAdmin;" -uroot
mysql -hlocalhost -uroot -DBootstrapAdmin < ~/src/Longbow/BootstrapAdmin/DatabaseScripts/MySQL/install.sql
mysql -hlocalhost -uroot -DBootstrapAdmin < ~/src/Longbow/BootstrapAdmin/DatabaseScripts/MySQL/initData.sql