aboutsummaryrefslogtreecommitdiffstats
path: root/docker/instance_run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/instance_run.sh')
-rwxr-xr-xdocker/instance_run.sh2
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