Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
✘CakePHP is NOT able to connect to the database.

Connection to database could not be established: SQLSTATE[HY000] [1045] Access denied for user 'my_app'@'localhost' (using password: YES)
Posted

1 solution

The error message is pretty self explanatory: the user "my_app" does not have teh right credentials to log into the database.

Either the user name is wrong, the password is wrong, or both - or the user does not have access rights for the specific database you are trying to connect to.
Check the username and password you are sending as part of your connections string, and verify them with SQL Server via SSMS.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900