diff options
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin/initDB.sh')
-rw-r--r-- | rulemgt-standalone/src/main/assembly/bin/initDB.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/initDB.sh b/rulemgt-standalone/src/main/assembly/bin/initDB.sh index f49123d..905ad1b 100644 --- a/rulemgt-standalone/src/main/assembly/bin/initDB.sh +++ b/rulemgt-standalone/src/main/assembly/bin/initDB.sh @@ -23,8 +23,14 @@ port=$3 host=$4 echo "start init holmes rulemgt db" main_path=$HOME/../ +cat $main_path/dbscripts/mysql/openo-holmes_rulemgt-createobj.sql +echo "user="$user +echo "password"$password +echo "port="$port +echo "host="$host mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/openo-holmes_rulemgt-createobj.sql sql_result=$? +cat "sql_result="$sql_result if [ $sql_result != 0 ] ; then echo "failed to init rulemgt database!" exit 1 |