devilish Posted September 23, 2005 Posted September 23, 2005 Hi there I run a few sites here at TCH all on individual viritual hosts (the only way i can afford it). I would like them to all use a single MySQL database for certain things, but everytime i try and get my PHP to connect to a database on a different host, MySQL sends an Access Denied to my a code and therefore my script is unable to execute. How do I get the PHP on one virutal host to connect the the MySQL database on another???? Steve Quote
TweezerMan Posted September 23, 2005 Posted September 23, 2005 On the server with the MySQL database, in CPanel / MySQL Databases, you need to add the servers you want you want to have access in the "Access Hosts" section (near the bottom of the page). These servers should be added as "serverXX.totalchoicehosting.com", where "XX" is the server number. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.