View Single Post
  #183  
Old 04-09-2014, 09:29 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,542
Kyttias is on a distinguished road
Default

Quote:
Originally Posted by gloryKAT View Post
I probably asked this before, but:

I have this error:

Could not connect to database, the following error has occurred:
SQLSTATE[HY000] [1045] Access denied for user 'glorykat'@'localhost' (using password: YES)

How do I solve this?
This sort of error can plague any user working with any framework setup that connects to MySQL, because the problem here lies with the username/password you're trying to connect to the database with. I personally can't advise much beyond triple checking your configuration for Mysidia to make sure it is trying to use the correct details, checking your MySQL through PHPMyAdmin to make sure that you can indeed log in with that same username/password combination, and then checking your permissions for that user - to make sure the user has access to all the functions of the database.

After browsing around the web trying to find some help for troubleshooting, all I found was the following vague gems:
  • Sometimes you have to use localhost not 127.0.0.1 for this to work.
  • Is the password in quotes?
  • This might be worth a read since you're on localhost (presumably through WAMP or similar). But it may be rather very irrelevant to this situation.

And whether you attempt this first or last, you can always try creating a new user in PHPMyAdmin, just to make sure you did it properly the first time.