[root@localhost ~]# mysql -uroot -p -h 192.168.0.103
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.103:3306' (104)
[root@localhost ~]# telnet 192.168.0.103 3306
Trying 192.168.0.103...
telnet: connect to address 192.168.0.103: Connection reset by peer
1.首先先确保有没有安装telnet
linux :yum install telnet-server -y
windows:
2.开放安装了mysql的window防火墙3306端口
开始--本地安全策略--入站规则/出站规则--端口
特定端口选择下一步,名称随便起,格式:mysql_3306_in或mysql_3306_out皆可
3.检查下防火墙
4.如果上面操作了还不行,检查下有没有打开了安全管家、360安全卫士之类的软件
我建议直接关闭退出