Need to connect to MySQL Database Externally with PHP?



I am running an email campaign from a different website. I imported my Website but the PHP forms aren’t working. What I need to do, i think, is instead of writing the connection string like ‘localhost.urliuse.com’ then it should be something different to connect with ‘????’

Posted on October 22nd, 2009 in Programming & Design |

2 Responses

  1. The Awaken Says:

    You may end up having to use an absolute URL to connect to your host.

    Also, you may have to change the permissions to allow access from certain IP addresses…

  2. Michael V Says:

    you need to enter the IP address of the server that holds your database in your php script

    your webhost must also allow remote mysql connections

    if it’s a cpanel server: In the MySQL menu in CPanel make sure the IP is listed on the access list

    And make sure the server firewall isn’t blocking port 3306.

Leave a comment!

XHTML: Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>