这个问题在这里已有答案:
为了创建数据库,我在终端运行命令:php artisan migrate
我明白了:
SQLSTATE [HY00] [1045] Access denied for user ‘dbuser’@‘localhost’ (using password: YES) (SQL: select * from information_schema.table where table_schema = blog and table_name = migrations)
我运行了命令php
artisan config:cache
并且它成功但我似乎仍然无法配置phpMyAdmin
连接到数据库?我该如何解决这个错误?
在.env
或config
目录中的文件中进行任何与配置相关的更改后,
你需要运行:
$ php artisan config:clear