Fix database start error in multi-nodes k8s env 03/45003/1
authoryangyan <yangyanyj@chinamobile.com>
Fri, 27 Apr 2018 02:16:01 +0000 (10:16 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Fri, 27 Apr 2018 02:16:06 +0000 (10:16 +0800)
Issue-ID: VFC-889
Change-Id: I3cedc5601aaf6b26914b7a5e043138199b71cb7b
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
res/docker/instance_init.sh

index 1986369..c2d91e8 100755 (executable)
@@ -5,7 +5,7 @@ function start_redis_server {
 }
 
 function start_mysql {
-    service mysql start
+    find /var/lib/mysql -type f -exec touch {} \; && service mysql start
     sleep 1
 }