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

前端 未结 24 1539
Happy的楠姐
Happy的楠姐 2021-02-03 19:23

I have installed Laravel 5 successfully and changed MySQL credentials in database.php file in config directory to \'

mysql\' => [
            \'driver\'           


        
24条回答
  •  隐瞒了意图╮
    2021-02-03 19:34

    I spent hours on this :-( and finally, it was really easy to hack

    BEFORE

    DB_PASSWORD=#Root2020$
    

    UPDATED

    DB_PASSWORD="#Root2020$"
    

    I think the problem was # in the password, that's why I had to write my password into quotation marks.

提交回复
热议问题