您现在的位置是: 首页 > 运维 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
2020-05-22 【运维】 3165人已围观 5792次浏览
简介解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
用php连接mysql会时不时地出现这种错误,一开始以为是网络不好造成的没怎么在意, 后来上网查找,在my.cnf 里面的 [mysqld] 段增加一个启动参数
skip-name-resolve
重启以后问题解决,并且可以链接远程服务器了。
原因还未搞清,先mark下
很赞哦! (0)
相关文章
- CentOS 7 安装 Golang 环境
- Linux 修改默认的 ssh 22 端口
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- mysql 索引过长1071-max key length is 767 byte
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- docker mysql 导入 SQL 脚本
- sentinel directive while not in sentinel mode 问题解决
- 迁移 Docker 目录
- Nginx转发阿里云OSS内网流量
点击排行
- 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 项目完整部署方案
站长推荐
猜你喜欢
- Nginx转发阿里云OSS内网流量
- Linux 常用命令 持续更新中...
- 【代码片段】MySQL新建表添加基础字段
- SqlServer 刷新所有视图
- SpringBoot 集成 Elasticsearch 7.8.1 出现错误 Factory method 'elasticsearchRestHighLevelClient' threw exception; nested exception is java.lang.NoSuchFieldError: IGNORE_DEPRECATIONS
- Windows CMD 常用命令
- 常见端口号
- CentOS 7 安装 Golang 环境
- springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
- Linux 查看磁盘、磁盘分区、挂载磁盘、卸载磁盘操作