docker mysql 出现错误
连接数据库出现,docker 容器又能正常进入 正常进入mysql
Got a packet bigger than ‘max_allowed_packet’ bytes
如果你设置了这个
set global max_allowed_packet=524288000; #修改 512M
后面导致
mysql error
pymysql.err.OperationalError: (1045, "Access denied for user 'root'@'116.24.x.x' (using password: YES)")
systemctl status firewalld 查看服务器状态
linux server error
proxy 'proxy-mysql' has no server available
Warning] IP address '116.24.x.x' could not be resolved: Temporary failure in name resolution
2019-09-26T03:59:35.102944016Z 2019-09-26T03:59:35.102658Z 31 [Warning] IP address '116.24.x.x' could not be resolved: Name or service not known
iptables: No chain/target/match by that name
docker logs -f -t --tail 100 f9ceeb20004b
查看docker 日志
Error response from daemon: Cannot restart container node1: driver failed programming external connectivity on endpoint node1 (4c26d34672512580bd71409ff0a3002b2302f8a524424c)