when I placed on a web server winxp
it's ok to link http://192.168.1.33gm/register.php
but the completion of registration can not connect to mysql
although I have the IP config in config.php
with ubuntu server ip is 192.168.1.250
PHP Code:<? //=====For MySQL Datatbase=====//
$DBHost = "192.168.1.250"; // localhost or your IP
$DBUser = "root"; // Database user
$DBPassword = "123456789"; // Database password aringaso
$DBName = "dbo"; // Database name
$ServerIP = "192.168.1.250";
$ServerPort = "29000";
?>I use xamppPHP Code:Warning: mysql_connect() [function.mysql-connect]: [2002] No connection could be made because the target machine actively (trying to connect via tcp://192.168.1.250:3306) in D:\desk\Desktop\lung tung\xampp\htdocs\gm\register.php on line 6
Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it. in D:\desk\Desktop\lung tung\xampp\htdocs\gm\register.php on line 6
![]()




Reply With Quote


