DataGrip 连接centos 下的mysql【08001】 记住一定要关闭linux下的防火墙。 1.关闭防火墙 sudo systemctl start firewalld 2.查看防火墙 sudo systemctl status firewalld 3.打开防火墙 sudo systemctl start firewalld 4.以上命令只是暂时的,重启之后 ,防火墙会自动打开 #想要重启后防火墙还是处于关闭状态,得使用命令 sudo systemctl disable firewalld