您现在的位置是: 首页 > 运维 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
2020-05-22 【运维】 3503人已围观 6370次浏览
简介解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
用php连接mysql会时不时地出现这种错误,一开始以为是网络不好造成的没怎么在意, 后来上网查找,在my.cnf 里面的 [mysqld] 段增加一个启动参数
skip-name-resolve
重启以后问题解决,并且可以链接远程服务器了。
原因还未搞清,先mark下
很赞哦! (0)
相关文章
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- Oracle ORA-12541:TNS:no listener错误解决方法
- Linux 常用命令 持续更新中...
- Debian/Ubuntu无netstat命令解决方案
- CentOS 7 安装 Golang 环境
- LNMP 手动更新 SSL 证书
- Windows CMD 常用命令
- Docker 批量操作命令
- 自建Ngrok服务端
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
点击排行
- 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 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- linux下各文件夹的结构说明及用途介绍
- CentOS 安装Node.js
- Vue 路由跳转错误 NavigationDuplicated: Avoided redundant navigation to current location
- Mac降温软件推荐smcFanControl
- SpringBoot @NotBlank 不生效问题
- PHP 中list()出现Undefined offset: 0错误
- python scrapy 出现 DEBUG: Filtered offsite request to 错误
- Nestedset 出现 Node must exists. 错误解决方案
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- SpringBoot 启动提示 Requested bean is currently in creation: Is there an unresolvable circular reference?