SQLSTATE[HY000] [1045] Access denied for user 'username'@'localhost' using CakePHP

后端 未结 5 1824
温柔的废话
温柔的废话 2020-11-27 19:23

I am new to PHP and CakePHP. I am finding problems while wiring my database using CakePHP.

Below is my application configuration.

I am on Bitnami WAMP stack

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 20:28

    Check Following Things

    • Make Sure You Have MySQL Server Running
    • Check connection with default credentials i.e. username : 'root' & password : '' [Blank Password]
    • Try login phpmyadmin with same credentials
    • Try to put 127.0.0.1 instead localhost or your lan IP would do too.
    • Make sure you are running MySql on 3306 and if you have configured make sure to state it while making a connection

提交回复
热议问题