我想在this course分钟后建立并学习拉威尔
When I try to use the command php artisan migrate
I get this error:
[Illuminate\Database\QueryException]
SQLSTATE[HY000] [1045] Access denied for user 'laravel'@'localhost' (using password: NO) (SQL: select * from information_schema.tables whe
re table_schema = laravel and table_name = migrations)
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'laravel'@'localhost' (using password: NO)
I have looked for answers. I figured I may have to make some changes in the .env
file, but I don't know what, and nothing I have tried so far has worked.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=
我使用的是Ubuntu16.04,而不是视频中的MacOSX,所以我想知道我应该做些什么不同的事情?有没有我没有正确设置的MySQL设置?