Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
02-04-2013, 11:58 PM #1
Error: Access denied for user 'cookie'@'localhost' (using password: NO)
Title says it all, Below is my connection code.
$conn = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die ('Error connecting to mysql');
I have access to the databse, and the user and pass im using are correct and its still not working :\
02-05-2013, 01:21 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,668 Times in 2,637 Posts
Double check your actual DB_PASSWORD and password settings for it. According to the error, you are denied and not providing it with a password.
Another thing to watch for is localhost versus % username settings. These are two separate users, so user@localhost isn't the same as user@domain.PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');