PDA

View Full Version : Call a database externally


dstonek
10-7-05, 07:29 PM
Is it possible to have a script in an external server (not powweb) calling a database located in mysql10.powweb.com?
I made a try but it didn't work.

$hostname_owner = "mysql10.powweb.com";
$database_owner = "database";
$username_owner = "owner";
$password_owner = "passw";
$owner = mysql_connect($hostname_owner, $username_owner, $password_owner) or trigger_error(mysql_error(),E_USER_ERROR);

tbonekkt
10-7-05, 07:30 PM
No - we don't allow remote connections to our database servers.

dstonek
10-7-05, 08:13 PM
Do you allow persistent connections?

RTH10260
10-8-05, 07:10 AM
Do you allow persistent connections?
I don't know anymore if they have been disabled now, but they are surely frowned upon in a shared webserver environment with thousands of websites on the same cluster. I understand that they don't gracefully time out.

Don't use them and you will not get in trouble.