【发布时间】:2019-09-03 03:44:39
【问题描述】:
MySQLite 连接使用用户名和密码,但我没有指定任何
Illuminate\Database\QueryException SQLSTATE[HY000] [1045] 用户 'homestead'@'localhost' 的访问被拒绝(使用密码:YES)(SQL:select * from
customers)
【问题讨论】:
-
你能分享你的
.env文件吗? -
“MySQLite”?你用的是什么数据库?
-
DB_CONNECTION=sqlite DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database/database.sqlite DB_USERNAME=homestead DB_PASSWORD=secret