Your MySQL user is not allowed to connect to the gameserver database. That is normal, because the gameserver user is only allowed to connect from localhost.
In my opinion this is the best way to solve this problem:
Create a new mysql user on the gameserver database and allow connections from every host.
Run these querys on the gameserver database:
Warning: Replace USERNAME and PASSWORD with your new username and password and make sure that you use a strong password!
Code:
CREATE USER 'USERNAME'@'%' IDENTIFIED BY 'PASSWORD';
Give the rights to the user:
Again, replace USERNAME with your created user
Code:
GRANT ALL ON account.* TO 'USERNAME'@'%';
GRANT ALL ON common.* TO 'USERNAME'@'%';
GRANT ALL ON hotbackup.* TO 'USERNAME'@'%';
GRANT ALL ON log.* TO 'USERNAME'@'%';
GRANT ALL ON player.* TO 'USERNAME'@'%';
Reload the privileges:
Replace the username and password of the gameserver-connection in your website on line 16:
PHP Code:
$sqlServ = mysql_connect('25.127.15.131', 'USERNAME', 'PASSWORD');