It appears to me that the following lines are not compatible with the mysqlhost= param in ee.conf.
Because @$MYSQLHOST is used the web server / database server must be the same or the created user can’t login from the web server.
Please confirm I’m not missing something.
James
Starting @ Line 726
Create Separate User & Grant Permission
echo -e “WPDBNAME = $WPDBNAME \nWPDBUSER = $WPDBUSER \nWPDBPASS = $WPDBPASS” &>> $INSTALLLOG
mysql -h $MYSQLHOST -u $MYSQLUSER -p$MYSQLPASS -e “create user ‘$WPDBUSER’@’$MYSQLHOST’ identified by ‘$WPDBPASS’”
mysql -h $MYSQLHOST -u $MYSQLUSER -p$MYSQLPASS -e “grant all privileges on <code>$WPDBNAME</code>.* to ‘$WPDBUSER’@’$MYSQLHOST’”
mysql -h $MYSQLHOST -u $MYSQLUSER -p$MYSQLPASS -e “flush privileges”