mysql_native_password Connection closed by foreign host.
时间: 2023-12-02 16:06:04 浏览: 140
mysql_native_password Connection closed by foreign host.是指通过telnet连接MySQL时,由于连接服务器的IP地址没有访问权限,导致连接被远程主机关闭。 这通常是由于在MySQL中没有为连接服务器的IP地址授予访问权限的用户所造成的。 可以通过使用ping命令检查网络是否连通,如果可以ping通,说明网络是正常的。 在登录数据库时,可以查询mysql.user表中的用户、主机和密码信息,以确认是否有正确的权限配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [is not allowed to connect to this MySQL serverConnection closed by foreign host.](https://blog.csdn.net/g13731463274/article/details/107709261)[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 ]
阅读全文