pycharm、datagrip无法连接mysql,[08S01] Communications link failure.

场景:在centos7安装mysql5.7.25后,在windows中使用navicat、mysql-client、dbheaver均可正常连接,唯独pycharm、datagrip这家公司的产品无法连接,提示以下内容

Connection to [email protected] failed.
[08S01] Communications link failure.
The last packet successfully received from the server was 9 milliseconds ago.  The last packet sent successfully to the server was 8 milliseconds ago.

多方查找,猜测是mysql驱动有问题,经下载旧版本驱动后成功连接
pycharm、datagrip无法连接mysql,[08S01] Communications link failure._第1张图片

你可能感兴趣的:(pycharm、datagrip无法连接mysql,[08S01] Communications link failure.)