Communications link failure The last packet sent successfully to the server

情境:

我出现这个错误是因为,我下载了一个开源的项目,使用docker-compose程序,其中mysql服务并没哟对外映射端口

解决:

修改配置文件,使mysql对外映射端口

你们的情况可能是mysql的服务并没有启动,如果是windows请自行去服务里面查看

你可能感兴趣的:(Error实例,Communications,link,failure,mysql数据库链接失败,The,last,packet,sent,successfu,docker,服务)