smoggers
smoggers

Reputation: 3192

phpmyadmin connecting to database

I have a website that connects to a database and retrieves page content and all works fine. However, I then use the same database connection to connect to and retrieve user details for logging in to my site (2 tables but both in same database). However, I get the following error message when doing this.

Warning: mysql_query() [function.mysql-query]: Access denied for user 'username'@'localhost' (using password: NO)  

Upvotes: 0

Views: 276

Answers (2)

Dawid Zbiński
Dawid Zbiński

Reputation: 5826

Well it's says that your password is not correct and that you haven't gained access. Can you please upload a code here ? if you're using localhost, then the username should be root .. try to change it and leave the password field empty for now.

Upvotes: 0

Steve
Steve

Reputation: 1402

The hint is in "using password NO" There is no password being sent - in fact it is only using username@localhost as the username so it looks like you don't have your credentials configured properly.

Check config.inc.php - http://wiki.phpmyadmin.net/pma/Configuration_storage

Upvotes: 1

Related Questions