I just got a second server so I can have one server do all the web stuff and the other all the mysql stuff. I've setup a new cpanel account on the secondary server, running mysql, and given it the usual username, tablename, databasename and password.

How do I connect to it with mysql_connect? Do I just put in the remote IP address instead of "localhost"?

Want to make sure I do this right.