MySQL:reading initial communication packet问题解决方法
解决方法之一:
网站访问出现如题错误,经过检查my.cnf,发现innodb_buffer_pool_size = 2048M 设置过大,调整为innodb_buffer_pool_size = 1024M即可,网上也有该问题的其他解决方法,但都不能解决我的问题。
Lost connection to MySQL server at 'reading initial communication packet' 错误解决
上次解决了这个问题,今天又碰到,突然失忆,又做了一番无用功后终于搞定,这次一定要记录下来,免得下次又浪费时间
1、修改mysql配置文件
vi /etc/my.cnf
[mysqld]段加skip-name-resolve
在这个之前要把mysql的远程访问权限打开,或者再加skip-grant-table(不推荐)
2、修改hosts.allow
vi /etc/hosts.allow
加mysqld : ALL : ALLOW
mysqld-max : ALL :ALLOW
其它网友的补充:
mysql教程 'reading initial communication packet'错误解决方法
出现这种问题是服务器突然关掉出现的问题,
错误提示是:
无法链接数据库教程(mysql)服务器, 请检查服务器地址、用户名、密码.
代码: 2013
错误: lost connection to mysql server at 'reading initial communication pa(www.jb51.net)cket', system error: 0
下面我们来看看具体解解决办法
方法一:解决方法是在 my.cnf 里面的 [mysqld] 段增加一个启动参数 skip-name-resolve
方法二:如果你方法一不行,可以尝试重装mysql server这样,再把数据库导进去就ok了。
总结:
如果能不重装mysql情况能把机器搞好,那是最好不过了,不在万不得己请不要重装mysql哦
您可能感兴趣的文章:
- MySQL提示:The server quit without updating PID file问题的解决办法
- MySQL server has gone away 问题的解决方法
- Mysql插入中文变为全问号???的问题 解决方法
- Mysql CPU占用高的问题解决方法小结
- MySQL远程连接丢失问题解决方法(Lost connection to MySQL server)
- MySQL无法启动几种常见问题小结
- MySQL的中文UTF8乱码问题
- 关于Mysql中文乱码问题该如何解决(乱码问题完美解决方案)
- mysql 数据同步 出现Slave_IO_Running:No问题的解决方法小结
- mysql error:#1062 Duplicate entry ‘***′ for key 1问题解决方法
- MySQL中SELECT+UPDATE处理并发更新问题解决方案分享
- MySQL使用中遇到的问题记录
- MySQL:reading initial communication packet问题解决方法
- MySQL远程连接丢失问题解决方法Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0
- MySQL _Windows 环境下 MySQL:reading initial communication packet 问题解决
- Lost connection to MySQL server at 'reading initial communication packet' 错误解决
- Lost connection to MySQL server at 'reading initial communication packet' 错误解决
- 解决lost connection to mysql server at reading initial communication packet
- [Err] [Dtf] 2013 - Lost connection to MySQL server at 'reading initial communication packet', 复制数据问题
- 遇见Lost connection to MySQL server at 'reading initial communication packet',system error:0的解决办法
- Lost connection to MySQL server at ‘reading initial communication packet
- ubuntu下连接mysql时报错:Lost connection to MySQL server at 'reading initial communication packet', system
- Lost connection to MySQL server at ‘reading initial communication packet
- MySQL server has gone away 问题的解决方法(查询的结果集超过 max_allowed_packet )
- 连接mysql出现Lost connection to MySQL server at 'reading initial communication packet', system error: 0
- MySQL连接出现错误 'reading initial communication packet', system error: 0
- mysql Lost connection to MySQL server at ‘reading initial communication packet
- 关于"xampp中mysql中配置问题:Unknown initial character set index '48' received from server错误解决方法"
- 解决MySQL Error (2013): Lost connection to MySQL server at waiting for initial communication packet
- mysql reading initial communication packet
- Lost connection to MySQL server at ‘reading initial communication packet', system error: 0 mysql远程连接
- lost connection to mysql server at 'reading initial communication packet',system error:2