mysql_native_password Connection closed by foreign host
时间: 2023-12-02 19:50:19 浏览: 307
问题的原因可能是由于密码错误或者连接的IP地址没有被授权访问MySQL数据库。引用中的错误信息"Access denied for user 'root'@'172.16.35.56' (using password: YES)"表明密码错误。但是用户确认输入的密码是正确的。引用指出,如果MySQL数据库只允许所在服务器进行连接,其他网段或客户端需要在MySQL服务端设置允许的IP权限。引用中的ping命令结果显示网络是连通的。根据这些信息,可以推测可能是由于IP地址没有被授权访问MySQL数据库导致的连接关闭。为了解决这个问题,可以在MySQL服务端设置允许的IP权限,以便允许来自指定IP地址的访问。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [记一次kettle连接mysql报错,解决方法](https://blog.csdn.net/weixin_36815898/article/details/115052277)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [MySQL远程连接报错:ERROR 2002 (HY000): Can‘t connect to server on ‘192.168.172.130‘ (115)](https://blog.csdn.net/single_g_l/article/details/126216066)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文