You don't connect MySQL to PHP. You connect PHP to MySQL.
PHP's mysql_connect() function takes three parameters: the IP address or resolvable machine name of the server, the userid, and the password.
Assuming that no firewall is going to keep you from connecting, and assuming that you have created a user which has the ability to connect from your web server, then it's fairly straightforward. Want the best answers? Ask the best questions:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.