1.1
首先判断CentOS的防火墙,如果开启就关闭
//查看防火墙状态
systemctl status firewalld
//关闭防火墙
systemctl stop firewalld.service
//关闭防火墙开机自启
systemctl disable firewalld.service
而后可以打开DataGrip连接了,如果连接不上执行如下1.2操作
1.2
把datagrip连接设置高级(Advanced)处找到useSSL把这个设置为False
如还是连接不上并报错和1.3错误类似,执行1.3操作。

1.3
如报错如下: Public Key Retrieval is not allowed com.mysql.cj.exceptions.UnableToConnectException: Public Key Retrieval is not allowed
设置 allowPublicKeyRetrieval=true 即可

执行完上述3步骤皆可连接。




![[组合数学]LeetCode:2954:统计感冒序列的数目](https://img-blog.csdnimg.cn/f95ddae62a4e43a68295601c723f92fb.gif#pic_center)




![[足式机器人]Part2 Dr. CAN学习笔记-数学基础Ch0-3线性化Linearization](https://img-blog.csdnimg.cn/direct/272e51ba6b694e7da6bb320e03bf6620.png)










