Home > Database > Mysql Tutorial > body text

mysql错误MySQL:reading initial communication packet

WBOY
Release: 2016-06-07 17:51:59
Original
1862 people have browsed it

文章再次收集了关于MySQL:reading initial communication packet的问题分析与解析方法 。

解决方法之一:

站访问出现如题错误,经过检查my.cnf,发现innodb_buffer_pool_size = 2048M 设置过大,调整为innodb_buffer_pool_size = 1024M即可。

看这句我们可以想到是innodb引擎的而不是myisam的引擎的数据库哦。

如果上面方法 能不行我们可以尝试下面方法

解决方法是在 my.cnf 里面的 [mysqld] 段增加一个启动参数 skip-name-resolve

重启mysql试一下,


注:大家可检查一下服务器的用户名与密码是否正确,还在如果是时不时出现可以检查会不会秘windows补丁包有冲突。

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!