start mysql before executing it
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / docker / instance-init.sh
index 39f0c3e..da32e84 100755 (executable)
 #
 # Config mysql credentials
 
-function start_mysql {
-    echo "start mysql ... "
-    /usr/bin/systemctl start mysql.service || /usr/sbin/service mysql start
-    sleep 1
-}
-
-start_mysql
-
 # Initialize MySQL schema
+/usr/bin/mysqld_safe &
 cd bin
 ./init_db.sh root rootpass 127.0.0.1 3306