Just make sure the remote user (Webserver box) has privileges to the MySQL database.
so on the MySQL box at the MySQL command line type
grant all privileges on *.databasename to username@remoteipaddress identified by 'password';
Flush Privileges;
remoteipaddress would be the IP of the webserver.
Mike