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

前端 未结 24 1941
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:33

    Open terminal on XAMPP > go to /opt/lampp/htdocs/project_name > run php artisan migrate

    .env file

    DB_CONNECTION=mysql
    DB_HOST=localhost
    DB_PORT=8080
    DB_DATABASE=database_name
    DB_USERNAME=root
    DB_PASSWORD=
    

提交回复
热议问题