使用Navicat客户端连接mysql数据库  出现以下信息。

Lost connection to MySQL serverat ‘waiting.

原因是由于mysql对连接的客户端进行DNS反向解析。

在 my.cnf 中增加 skip-name-resolve 这一行,这个参数为禁止域名解析(包括主机名)

文件路径:

Lost connection to MySQL serverat ‘waiting

Lost connection to MySQL serverat ‘waiting

重启即可

Lost connection to MySQL serverat ‘waiting

关于“mysql中的 skip-name-resolve 问题” 可查看以下链接文章:

http://blog.sina.com.cn/s/blog_96ae64bd0100wtn3.html

相关文章:

  • 2022-01-18
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-11-04
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2021-11-24
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-07-24
相关资源
相似解决方案