1.故障状态
[root@server02 ~]# mysql -utuser -h192.168.100.170 -p Enter password: ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.100.170' (111)
2.解决:
a.防火墙
b.selinux
c.检查my.cnf中客户端接口
[mysqld] user = mysql port = 3306
我这情况是[mysqld]中的端口被修改过,所以导致远程连接不了