问答详情
源自:4-2 使用DB facade实现CURD

[1045] Access denied for user 'root'@'localhost' (using password: YES)

Illuminate \ Database \ QueryException 

(1045) SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from student)

提问者:libing_cheer 2018-08-02 10:19

个回答

  • 灬南宫萧翰灬
    2018-08-10 14:15:59

    新建的数据库的密码为空,进去之后再做修改

  • 景jjjjjj
    2018-08-02 16:16:33

    应该是.env的密码和SQL数据库设置的密码不一致,改一下就ok了

  • _StringTek丶
    2018-08-02 14:03:03

    数据库密码错误