#!/bin/bash
#
-# Copyright 2017 Huawei Technologies Co., Ltd.
+# Copyright 2017, Nokia Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Config mysql credentials
-#sed -i "s|rootpass|rootpass|" webapps/ROOT/WEB-INF/classes/spring/Vnfmadapter/services.xml
+function start_mysql {
+ echo "start mysql in instance_init ... "
+ systemctl start mysql.service > myout_instance_init.file 2>&1
+ cat myout_instance_init.file
+ systemctl status mysql.service > myout_instance_init_mysql_status.file 2>&1
+ cat myout_instance_init_mysql_status.file
+ sleep 5
+}
+
+start_mysql
# Initialize MySQL schema
cd bin