Thinkphp6 SQLSTATE[HY000] [1045] Access denied for user ‘root‘@‘localhost‘ (using password: YES ...
2022-11-24 11:10:29
224
{{single.collect_count}}

Thinkphp6 SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES 错误

出现这个错误一般是配置文件问题 先找database.php看看配置有没有问题 没问题

然后看thinkphp6根目录 .env文件是否开启 里面的配置看看有没有问题 

因为先找的.env配置文件 然后走数据库配置文件

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}