diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-04-17 16:26:52 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-04-17 16:26:57 +0800 |
commit | c81122e86ef85002fc62785c376b0660ceed9432 (patch) | |
tree | f2a2bc7dd93b2fd8a4279f79c5c6cda29e824fa9 | |
parent | 840c057e051702d2dab64c01679c39995a49993a (diff) |
Fix docker init sh for db
Issue-ID: VFC-1306
Change-Id: I14f3ae2665de71d50d8c0be6d4ebccd36d8d77ec
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-x | docker/instance_run.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |