I am trying to connect to the mysql database from another server to the one on which the database is located, but I get an error.
I assume this might be due to remote permissions. Can I change this or do I need my hosting company to do this?
<?php $con = mysql_connect("mysql4-remote.hosting.net","myadmin","password123"); if (!$con) { die('Could not connect: ' . mysql_error()); } ?>
Can't connect to MySQL server on 'mysql4-remote.hosting.net' (10060)PHP Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'mysql4-remote.hosting.net' (10060) in D:\websites\abc123\www\test.php on line 2
source share