diff options
Diffstat (limited to 'nokia')
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh | 1 | ||||
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh b/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh index e510bfaa..a200e513 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh @@ -44,6 +44,7 @@ fi echo echo "DB-INIT [vnfm_db] : START" +echo "start to create database and tables ... " mysql -u$1 -p$2 -h$3 -P$4 <$(cd `dirname $0`; pwd)/db/mysql/db-schema.sql > myout_init_db.file 2>&1 if [ $? != 0 ] ; then diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh index 3c1ec6ca..a0595456 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh @@ -16,6 +16,13 @@ # # Config mysql credentials +function start_mysql { + service mysql start + sleep 1 +} + +start_mysql + # Initialize MySQL schema cd bin ./init_db.sh root rootpass 127.0.0.1 3306 |