MySQL Database Connection, CakePHP
Hello everyone. I ran into a problem today working on my site. For some reason it won't connect to my database. It worked fine yesterday but then when I tried to work on it today it threw an error at me. I'm using CakePHP.
"The database server returned this error: SQLSTATE[HY000] [1045]"
I didn't make any changes so I'm not sure why this is happening.
Thanks for the help.
-
That's an access denied error. Make sure your database user credentials are correct. 0 -
My db credentials are correct. 0 -
Are you connecting to a remote database, where perhaps you need to allow remote access? The error is access denied - not many things it can really be. You could also try removing the db user, recreating it, and re-adding it to the db. 0 -
Hello :) Make sure you are using the database username/password and not the cPanel username/password for authentication. Also ensure that the user is added to the database. You may want to contact your web hosting provider if the issue persists and you do not have root access to investigate further. Thank you. 0
Please sign in to leave a comment.
Comments
4 comments