报错:2002-Catn't connect to server 192.168.188.128(10060)
navicat 连接docker mysql container 出现问题
可能原因:电脑重启的时候没有正常关闭虚拟机,docker容器导致
此时若起一个container会出现:WARNING: IPv4 forwarding is disabled. Networking will not work
解决:
echo "net.ipv4.ip_forward=1" >>/usr/lib/sysctl.d/00-system.conf
systemctl restart network
service docker start
即可!