Results 1 to 2 of 2
Thread: Failed To Connect To Database
-
05-04-2011, 11:12 AM #1Junior Guru Wannabe
- Join Date
- Jul 2007
- Posts
- 69
Failed To Connect To Database
Hi Guys,
I have 2 VPS, one has cPanel/WHM installed which is where my script is at. The other VPS has DirectAdmin installed which is where my SQL database is held. I have setup everything and placed the IP of the DirectAdmin VPS and entered the correct login information for the cPanel VPS to login to the MySQL Database on the DirectAdmin VPS.
How ever i keep getting this error:
Error msg: Unable to connect to the database. Please make sure the database information specified in admin/includes/config.php are correct.
The reason i am having the MySQL database on the DirectAdmin VPS is because thats all the VPS will be used for (SQL Server and because DirectAdmin doesnt use as much resources compared to cPanel/WHM).
Any help would be great.
Thanks
-
05-05-2011, 05:28 AM #2Retired Moderator
- Join Date
- Feb 2005
- Location
- Australia
- Posts
- 5,849
Did you enable remote access to the database, on the DA server? By default only local database access is allowed. You'll also need port 3306 open in the firewall.
Code:telnet daserver.com 3306
Code:mysql -uusername -p -h daserver.com databasename
The reason i am having the MySQL database on the DirectAdmin VPS is because thats all the VPS will be used for (SQL Server and because DirectAdmin doesnt use as much resources compared to cPanel/WHM).Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter
Similar Threads
-
rndc: connect failed
By Spitfired2s in forum Hosting Security and TechnologyReplies: 5Last Post: 12-22-2009, 08:25 PM -
whmcs connect driectadmin Failed,help!
By myrte in forum Hosting Software and Control PanelsReplies: 3Last Post: 12-16-2009, 10:34 AM -
Database Connection Failed -- Database missing, did I just get hacked?
By LockerroomMarketing in forum Hosting Security and TechnologyReplies: 4Last Post: 11-25-2009, 04:02 PM -
Connect to MySQL failed (ASAP please!)
By andrewfayor in forum Hosting Security and TechnologyReplies: 3Last Post: 03-21-2002, 04:16 AM