[FAQ] ERROR 2013 (HY000): Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0

[问题澄清]

docker-compose 下 使用mysql 命令行登录时遇到报错 ERROR 2013 (HY000): Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0

[原因分析]

防火墙没有关闭

[解决方案]

关闭防火墙

[参考案例]