您现在的位置是: 首页 > 运维 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
2020-05-22 【运维】 2521人已围观 4772次浏览
简介解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
用php连接mysql会时不时地出现这种错误,一开始以为是网络不好造成的没怎么在意, 后来上网查找,在my.cnf 里面的 [mysqld] 段增加一个启动参数
skip-name-resolve
重启以后问题解决,并且可以链接远程服务器了。
原因还未搞清,先mark下
很赞哦! (0)
相关文章
- 查看MySQL默认读取的配置文件
- Nginx转发阿里云OSS内网流量
- mybatis中大于等于小于等于的写法
- 常见端口号
- Linux 修改默认的 ssh 22 端口
- Debian apt 使用国内镜像
- LNMP 手动更新 SSL 证书
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- 解决443端口被VMWare Workstation占用
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- win10 cmd下运行python命令弹出windows应用商店问题
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
- Vue 报错 Avoid using non-primitive value as key, use string/number value instead
- 删除Git仓库所有历史提交记录,成为一个干净的仓库
- mac idea spring boot 启动慢
- LNMP 手动更新 SSL 证书
- SpringBoot @NotBlank 不生效问题
- 在更新python时出现dyld: Library not loaded: /usr/local/opt/libpsl/lib/libpsl.5.dylib,Reason: image not found错误解决方案
- SqlServer 优化技巧