diff --git a/db/MongoDB/install.sh b/db/MongoDB/install.sh index 8e8ff90b..f205230b 100644 --- a/db/MongoDB/install.sh +++ b/db/MongoDB/install.sh @@ -1,3 +1,4 @@ +#! /bin/bash # init mongodb data mongo ./init.js -mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())" \ No newline at end of file +mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())" diff --git a/db/MySQL/install.sh b/db/MySQL/install.sh index 5ea364d5..0b254f7a 100644 --- a/db/MySQL/install.sh +++ b/db/MySQL/install.sh @@ -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