The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  Connect timed out.

在本地IDEA中和DBeaver中连接阿里云上MySQL数据库,报以上错误。

在本地可以ping通阿里云公网地址,但是telnet IP + 3306端口号不通,需要先去服务器上看mysql服务是否正常运行,经查看服务器上mysql服务正常运行。

接下来需要排查是否被防火墙拦截了。

打开轻量应用服务器的防火墙,点击添加规则添加3306之后,就不会出现上面的报错了,看来是端口被服务器上面的防火墙拦截了。

Logo

鸿蒙生态一站式服务平台。

更多推荐