Cannot connect to the database

Status
Not open for further replies.

rampa8483

New Member
Messages
2
Reaction score
0
Points
0
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
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Please post the URL where you are getting this error.
 
Status
Not open for further replies.
Top