小编Naj*_*idi的帖子

为什么 Laravel 中的 .env 文件配置不起作用

DB_CONNECTION=mysql      
DB_HOST=127.0.0.1     
DB_PORT=3306     
DB_DATABASE=
DB_USERNAME=root     
DB_PASSWORD=   
Run Code Online (Sandbox Code Playgroud)

这是我对 laravel 5.4 的配置,但 php artisan migrate 不工作并且有错误和迁移错误

Users-MacBook-Pro: ATP Developers php artisan migrate

In Connection.php line 664: 
SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table schema = atp_db and table_name = migrations)

In Connector.php line 87:
SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
Run Code Online (Sandbox Code Playgroud)

file environment-variables laravel laravel-4

5
推荐指数
2
解决办法
7630
查看次数

标签 统计

environment-variables ×1

file ×1

laravel ×1

laravel-4 ×1