连接数据库 access denied
时间: 2023-09-21 12:09:39 浏览: 109
连接数据库出现"access denied"的原因可能有几种可能性。首先,可能是数据库服务器停止工作导致无法访问。其次,可能是用户的端口号或IP地址设置不正确。另外,还有可能是mysql的配置文件错误,例如my.ini文件。最后,还有可能是root用户的密码错误。请检查这些可能的原因,并确保数据库配置正确。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [idea中使用yml连接数据库Access denied for user ‘root‘@‘localhost‘ (using password: YES)](https://blog.csdn.net/weixin_46426906/article/details/122638137)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* *3* [一次连接MySQL的坑 Access denied for user ‘root‘@‘localhost‘ (using password: YES)](https://blog.csdn.net/LJXKA/article/details/121937698)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文