From c81122e86ef85002fc62785c376b0660ceed9432 Mon Sep 17 00:00:00 2001 From: yangyan Date: Wed, 17 Apr 2019 16:26:52 +0800 Subject: Fix docker init sh for db Issue-ID: VFC-1306 Change-Id: I14f3ae2665de71d50d8c0be6d4ebccd36d8d77ec Signed-off-by: yangyan --- docker/instance_run.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docker') diff --git a/docker/instance_run.sh b/docker/instance_run.sh index db286c8..78609f1 100755 --- a/docker/instance_run.sh +++ b/docker/instance_run.sh @@ -29,6 +29,8 @@ function run_forever { start_redis_server start_mysql +mysql -uroot -p$MYSQL_ROOT_PASSWORD -e " GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root';" +mysql -uroot -p$MYSQL_ROOT_PASSWORD -e "flush privileges;" # if [ ! -f dbexist.txt ]; then # echo 1 > dbexist.txt # create_database -- cgit 1.2.3-korg