I want to put the PHP script on the user
"abc" directory (http://www.host.com/~abc/sql.php) to run the MySQL database. However, when I try to run the scripts as follows:
//
$host="www.host.com";
$username="abc";
$password="******";
if (!($link= mysql_connect($host, $username, $password))){
printError(sprintf("User Cannnot Connect Server");
exit();
}
//
It comes out
"Host '' is not allowed to connect to this MySQL server"
I have checked the password twice, it is right. Do you need to change the permission setting on the MySQL server or install the MySQL program into the users "abc" directory too?
Thanks