fix db error 75/85675/1
authoryangyan <yangyanyj@chinamobile.com>
Thu, 18 Apr 2019 10:47:32 +0000 (18:47 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Thu, 18 Apr 2019 10:47:41 +0000 (18:47 +0800)
Issue-ID: VFC-1306
Change-Id: Ifb9633e2b9a5219320bf541e79c365f397f5a332
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
docker/instance_run.sh

index 78609f1..d110109 100755 (executable)
@@ -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