用户'dbuser'的访问被拒绝[重复]

问题描述 投票:0回答:1

为了创建数据库,我在终端运行命令: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连接到数据库?我该如何解决这个错误?

php laravel
1个回答
0
投票

.envconfig目录中的文件中进行任何与配置相关的更改后,

你需要运行:

$ php artisan config:clear
© www.soinside.com 2019 - 2024. All rights reserved.