解决Navicat本地连接mysql数据库时报错误:2013-Lost connection to MYSQL server at 'reading for initial communicat

2013-Lost connection to MYSQL server at 'reading for initial communication packet',system error:0

在window系统下,用Navicat Premium本地连接MySQL数据库时,报了

2013-Lost connection to MYSQL server at 'reading for initial communication packet',system error:0

错误,就觉得很奇怪,昨天连接的好好的,也没有动配置文件,只是连接本地local host的数据库,为什么会出现这问题呢?

注意到了开了网易UU加速器,是不是因为加速器而连不上呢?

     将加速器关掉,没有解决问题。

     然后试着将MySQL服务重启下,问题解决。

根据提供的引用内容[1],报错"Lost connection to MySQL server at 'reading initial communication packet'"通常是由于配置问题导致的。解决方法如下: 1. 检查MySQL数据库是否成功安装,并确保MySQL服务正在运行。可以使用命令`service mysql status`来检查MySQL服务的状态。 2. 检查MySQL配置文件中的bind_address设置。根据引用中提到的,可以通过修改配置文件`/etc/mysql/mysql.conf.d/mysqld.cnf`来进行配置。使用命令`sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf`来编辑该文件。 3. 在配置文件中,找到`bind_address`这一行,并确保其值正确设置为MySQL服务器所在的IP地址或主机名。如果MySQL服务器是在本地运行,则可以将其设置为`127.0.0.1`。 4. 保存修改并重新启动MySQL服务,使用命令`sudo service mysql restart`。 通过以上步骤,您应该能够解决报错"Lost connection to MySQL server at 'reading initial communication packet'"的问题。如果问题仍然存在,请确保您的网络连接正常,并且防火墙没有阻止与MySQL服务器的通信。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Lost connection to MYSQL server at ‘waitting for initial communication packet’](https://download.csdn.net/download/weixin_38595243/13685606)[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: 33.333333333333336%"] - *2* [连接Linux中的Mysql报错2013 - Lost connection to MySQL server at reading initial communication packet...](https://blog.csdn.net/qq_40391091/article/details/123403334)[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: 33.333333333333336%"] - *3* [Navicat连接远端mysql报错Lost connection to MySQL server at ‘reading initial communication packet‘,...](https://blog.csdn.net/zhangyajunna/article/details/124429020)[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: 33.333333333333336%"] [ .reference_list ]
评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值