0

I utilized a free hosting service called 00webhost.com for hosting php-MySQL app. The database was then uploaded to a xeround.com which provides Database-as-a-Service. xeround.com gave url=instancexxxxx.db.xeround.com:57xx as well as a username and password. But 00webhost.com gave the following error:

Can't connect to MySQL server on 'instancexxxxx.db.xeround.com' (4)

How do I solve this?

John Conde
  • 217,595
  • 99
  • 455
  • 496
Vishnu G S
  • 654
  • 2
  • 10
  • 27
  • $conet = mysql_connect("instancexxxx.db.xeround.com:57xx", "xxxxxx", "xxxxxxx"); mysql_select_db("xxxxxxx", $conet); $result = mysql_query("SELECT * FROM xxxxxx"); – Vishnu G S Jan 31 '13 at 18:31
  • Use a real web host. There is undoubtedly something wrong with the free host you're using, and no chance they'll fix it given that you're not paying for the service. –  Jan 31 '13 at 18:32
  • Does adding the port number along with url cause any problem while dB connection? – Vishnu G S Jan 31 '13 at 18:36
  • has your database become 'active'? This error comes when the server is not running. – UnholyRanger Jan 31 '13 at 18:40
  • Have you whitelisted/added a user with the IP you are connection from on the MySql server? – Green Black Jan 31 '13 at 18:46
  • 1
    5quidhosting offer a free account with a local DB, http://www.5quidhost.co.uk/hosting.php – James Jan 31 '13 at 18:48

1 Answers1

0

First thing I'd check is that the database has the option for external access turned on, judging by the connect string it probably is...but you never know