docker连接的mysql报错 waiting for initial communication packet

解决办法:
1、在/etc/my.cnf
[mysqld]中加
skip-name-resolve

重启MySQL。

2、添加/etc/hosts文件
192.168.1.1 localhost
IP地址 主机名

相关文章:

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