【问题标题】:SQLSTATE[42000] [1044] Access denied for user 'bmsswsxf_shahed'@'localhost' to databaseSQLSTATE [42000] [1044] 拒绝用户 'bmsswsxf_shahed'@'localhost' 访问数据库
【发布时间】:2021-07-26 11:46:51
【问题描述】:

您好,我正面临 Illuminate\Database\QueryException SQLSTATE[42000] [1044] 用户 'bmsswsxf_shahed'@'localhost' 对数据库 'bmsswsxf_contentbasedapp' 的访问被拒绝(SQL: select * from sessions where id = QLzDGJ8MYo3oBKG4WfD0PfQPkBkXJ7f0cZeuBz33 limit 1)当我尝试在我的项目中运行我的项目时出现问题面板

但是我已经更新了我的 .env 文件,你可以看到这个

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=bmsswsxf_contentbasedapp
DB_USERNAME=bmsswsxf_shahed
DB_PASSWORD=my pass is given here

这是用户名 This is the image of user created

【问题讨论】:

  • 这听起来像是与您尝试执行的操作以及该用户执行所述操作的权限有关。

标签: mysql phpmyadmin cpanel laravel-8 cpanel-xmlapi


【解决方案1】:

创建一个新的用户和密码并将其保存在它工作的数据库中

【讨论】:

    猜你喜欢
    • 2018-04-20
    • 2015-07-11
    • 2012-02-08
    • 2015-07-18
    • 2015-04-05
    • 1970-01-01
    • 2016-02-04
    • 2019-08-23
    • 2021-06-01
    相关资源
    最近更新 更多