我在容器中有一个带有mysql数据库的项目。我用码头写作来设置我的项目。我想运行mysql命令来检查te数据库。所以我做了,然后得到:Creating myproject_database_run ... done
ERROR 2002(HY000): Can't connect to local MySQL server through soc
我有两个容器,其中一个webapp(node),第二个数据库(Mysql)在同一个docker网络中。但是当通过dockercompose运行这两个容器时,我的应用程序无法连接到数据库。当我检查webapp容器日志时,出现以下错误。连接时出错:错误: connect EHOSTUNREACH 172.28.0.2:3306 at TCPConnectWrap.afterConnect as onc