Jump to content

Not Connecting


unidox

Recommended Posts

I have this domain: http://daskeet.com/, and I am trying to have it remotely connect to a sql db on the deviantgaming.net server. I have this code:

 

<?php 
mysql_connect("deviantgaming.net", "username", "password") or die(mysql_error());
mysql_select_db("table") or die(mysql_error());
?>

 

But I am getting the error: Can't connect to MySQL server on 'deviantgaming.net' (10060)

 

On cpanel for deviantgaming.net I added both the domain and domain ip to the remote sql allowable ips. Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/139133-not-connecting/
Share on other sites

Some hosts will force intranet IP's for their SQL server and most of the time the SQL server does not share the same Host address as the server itself this is really common among shared hosting providers.

 

I can't really tell you because I don't know how your hosting is set up. I think I remember this being true with 1and1 hosting. and it is probably true among other shared hosting providers.

Link to comment
https://forums.phpfreaks.com/topic/139133-not-connecting/#findComment-727689
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.