I create a database and a user from cpanel
DB name : "nickname_dbname"
DB user : "nickname_dbuser"
DB pwd : "a password"
on the config file of my application i set
$DBhost = "localhost";
$DBuser = "nickname_dbuser";
$DBpass = "a password";
$DBName = "nickname_dbname";
then i use
mysql_connect($DBhost,$DBuser,$DBpass) or die("");
@mysql_select_db("$DBName") or die("message2");message1
and i get following error...
Warning: mysql_connect() [function.mysql-connect]: Access denied for user nickname_dbuser'@'10.33.248.76' (using password: YES) in /home/nickname/public_html/folder name/folder name/file.php on line nn
message1
what is wrong??
---------- Post added at 08:54 PM ---------- Previous post was at 08:20 PM ----------
also all privileges to the user for the database are guaranteed
DB name : "nickname_dbname"
DB user : "nickname_dbuser"
DB pwd : "a password"
on the config file of my application i set
$DBhost = "localhost";
$DBuser = "nickname_dbuser";
$DBpass = "a password";
$DBName = "nickname_dbname";
then i use
mysql_connect($DBhost,$DBuser,$DBpass) or die("");
@mysql_select_db("$DBName") or die("message2");message1
and i get following error...
Warning: mysql_connect() [function.mysql-connect]: Access denied for user nickname_dbuser'@'10.33.248.76' (using password: YES) in /home/nickname/public_html/folder name/folder name/file.php on line nn
message1
what is wrong??
---------- Post added at 08:54 PM ---------- Previous post was at 08:20 PM ----------
also all privileges to the user for the database are guaranteed