connecting to remote db using php

wxdqz

New Member
hi
i was trying to connect to mysql server from one linux to other linux using php program. and the code is
$db=mysql_connect("192.1.8.45:3306","root","");
but it is giving an error as

Warning: MySQL Connection Failed: Host '' is not allowed to connect to this MySQL server in /home/httpd/html/test.php3 on line 2

Warning: 0 is not a MySQL link index in /home/httpd/html/test.php3 on line 3

Warning: 0 is not a MySQL link index in /home/httpd/html/test.php3 on line 5

Warning: 0 is not a MySQL result index in /home/httpd/html/test.php3 on line 6


could u please reply to this query
thanks
 
Back
Top