aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-18 18:47:32 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-04-18 18:47:41 +0800
commita72ee467493864f68ec8f21b6939d64565353fc3 (patch)
tree53c0915dd33619558c6d7d9090f819f38e0c608a
parentc81122e86ef85002fc62785c376b0660ceed9432 (diff)
fix db error
Issue-ID: VFC-1306 Change-Id: Ifb9633e2b9a5219320bf541e79c365f397f5a332 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-xdocker/instance_run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/instance_run.sh b/docker/instance_run.sh
index 78609f1..d110109 100755
--- a/docker/instance_run.sh
+++ b/docker/instance_run.sh
@@ -29,7 +29,7 @@ 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 " GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;"
mysql -uroot -p$MYSQL_ROOT_PASSWORD -e "flush privileges;"
# if [ ! -f dbexist.txt ]; then
# echo 1 > dbexist.txt