Access denied for user 'homestead'@'localhost' (using password: YES)

前端 未结 29 1748
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 10:23

I\'m on a Mac OS Yosemite using Laravel 5.0.

While in my local environment, I run php artisan migrate I keep getting :

29条回答
  •  隐瞒了意图╮
    2020-11-27 10:38

    All you have to do is alter your .env file.

    DB_HOST=localhost
    DB_DATABASE=homestead
    DB_USERNAME=homestead
    DB_PASSWORD=secret
    

    In front of DB_DATABASE, write the name of the database and in front of DB_USERNAME, use root.

提交回复
热议问题