Actually I am wrong because I still have the issue even when HOST_IP and MYSQL_HOST have same value. The value 127.0.0.1 is hardcoded in ./lib/databases/mysql
# Update the DB to give user '$DATABASE_USER'@'%' full control of the all databases:
sudo mysql -uroot -p$DATABASE_PASSWORD -h127.0.0.1 -e "GRANT ALL PRIVILEGES ON *.* TO '$DATABASE_USER'@'%' identified by '$DATABASE_PASSWORD';"
Actually I am wrong because I still have the issue even when HOST_IP and MYSQL_HOST have same value. The value 127.0.0.1 is hardcoded in ./lib/databases /mysql
# Update the DB to give user '$DATABASE_ USER'@' %' full control of the all databases: PASSWORD -h127.0.0.1 -e "GRANT ALL PRIVILEGES ON *.* TO '$DATABASE_ USER'@' %' identified by '$DATABASE_ PASSWORD' ;"
sudo mysql -uroot -p$DATABASE_