Laravel: SQLSTATE[28000] [1045] Access denied for user 'homestead'@'localhost'

前端 未结 7 2112
北荒
北荒 2020-12-16 01:45

I just installed laravel and made a migration. But when i try to run it i get this error:

[PDOException]                                                              


        
7条回答
  •  误落风尘
    2020-12-16 02:13

    Try to check out the ".env" file in your root directory. These values are taken first. Yours are just the defaults if there are none given in the .env file.

    DB_CONNECTION=mysql 
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=Your_Database_Name
    DB_USERNAME=Your_UserName
    DB_PASSWORD=Your_Password
    

提交回复
热议问题