summaryrefslogtreecommitdiffstats
path: root/standalone/src/main/assembly/resources/bin/initDB.sh
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-05-22 20:38:13 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-05-22 20:38:19 +0800
commitdc2700619b3a2063ce143d8bbee0c3a809947209 (patch)
tree9dcf176017ebb676b8b5cf98a0a17de19ebba780 /standalone/src/main/assembly/resources/bin/initDB.sh
parent6f2e84fe6337e457e7503fc8d7fc80528a11b416 (diff)
fix alarm and performance analysis bug
Change-Id: Idf0e7eed078e9e4de65529f94aa05786276d0d40 Issue-ID: USECASEUI-119 Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'standalone/src/main/assembly/resources/bin/initDB.sh')
-rw-r--r--standalone/src/main/assembly/resources/bin/initDB.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/standalone/src/main/assembly/resources/bin/initDB.sh b/standalone/src/main/assembly/resources/bin/initDB.sh
index 6683960c..b9504926 100644
--- a/standalone/src/main/assembly/resources/bin/initDB.sh
+++ b/standalone/src/main/assembly/resources/bin/initDB.sh
@@ -15,15 +15,21 @@
# limitations under the License.
#
+echo "initDB.sh 1"
DIRNAME=`dirname $0`
+echo "initDB.sh 2"
HOME=`cd $DIRNAME/; pwd`
+echo "initDB.sh 3"
user=$1
password=$2
port=$3
host=$4
+echo "initDB.sh 4"
echo "start create usecase-ui db"
sql_path=$HOME/../
+echo "initDB.sh 5"
mysql -u$user -p$password -P$port -h$host <$sql_path/dbscripts/mysql/usecase-ui-createdb.sql
+echo "initDB.sh 6"
sql_result=$?
if [ $sql_result != 0 ] ; then
echo "failed to create usecase-ui database"