QueryException SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)

前端 未结 5 706
春和景丽
春和景丽 2021-01-12 19:57

Why is the following error occurring?

QueryException SQLSTATE[HY000] [1045] Access denied for user \'homestead\'@\'localhost\' (using password: YES)

5条回答
  •  被撕碎了的回忆
    2021-01-12 20:43

    Add the blank quotes in front of password like this

    DB_PASSWORD=""

    In the case if you have an empty password.
    Hope this solution will work

提交回复
热议问题