PHP artisan migrate 报错!

vagrant@homestead:~/Code/larabbs$ php artisan migrate

In Connection.php line 664:

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
sword: YES) (SQL: select * from information_schema.tables where table_schem
a = larabbs and table_name = migrations)

In Connector.php line 67:

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
sword: YES)

原因

DB_HOST=127.0.0.1本地地;

改成

192.168.10.10

你可能感兴趣的:(laravel)