Question
connecting DW8 to remote DB
Hi,
I was successful make connection on local computer, make some forms to writte date to DB. But when I put web site on web something ging wrong with connection.
This is connection code that succesful work on local machine:
and this is modified connection for internet:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_cooo = "asg-inc.net";
$database_cooo = "asguser";
$username_cooo = "asguser";
$password_cooo = "Formatedab1";
$cooo = mysql_pconnect($hostname_cooo, $username_cooo, $password_cooo) or trigger_error(mysql_error(),E_USER_ERROR);
?>
this code don't work ad I getting this error message:
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/a/m/a/amalneval/html/Connections/cooo.php on line 9
I was succesful make testing and remote server... how to resolve this problem!?
any tutorial or sample pages will be great... you can send on this email dotshock@gmail.com
tank's a lot and best wishes Benis.
I was successful make connection on local computer, make some forms to writte date to DB. But when I put web site on web something ging wrong with connection.
This is connection code that succesful work on local machine:
and this is modified connection for internet:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_cooo = "asg-inc.net";
$database_cooo = "asguser";
$username_cooo = "asguser";
$password_cooo = "Formatedab1";
$cooo = mysql_pconnect($hostname_cooo, $username_cooo, $password_cooo) or trigger_error(mysql_error(),E_USER_ERROR);
?>
this code don't work ad I getting this error message:
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/a/m/a/amalneval/html/Connections/cooo.php on line 9
I was succesful make testing and remote server... how to resolve this problem!?
any tutorial or sample pages will be great... you can send on this email dotshock@gmail.com
tank's a lot and best wishes Benis.