doc: 格式化数据库脚本
This commit is contained in:
parent
d8db6ff9ce
commit
5399f00f5a
|
@ -1,3 +1,4 @@
|
|||
#! /bin/bash
|
||||
# init mongodb data
|
||||
mongo ./init.js
|
||||
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"
|
||||
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue