summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main/assembly/bin/initDB.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin/initDB.sh')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/initDB.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/initDB.sh b/rulemgt-standalone/src/main/assembly/bin/initDB.sh
index a58450b..905ad1b 100644
--- a/rulemgt-standalone/src/main/assembly/bin/initDB.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/initDB.sh
@@ -24,8 +24,13 @@ 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