1045,多半就是要么你端口号3306没开,要么就是你密码错误
#安装网路分析 yum install net-tools #防火墙开放3306端口 [root@localhost ~]# firewall-cmd --zone=public --add-port=3306/tcp --permanent success #重新启动防火墙 [root@localhost ~]# systemctl restart firewalld.service 检查开放端所有端口 [root@localhost ~]# firewall-cmd --list-ports #检查3306的端口占用 root@localhost ~]# netstat -an|grep 3306 tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN tcp6 0 0 :::3306 :::* LISTEN [root@localhost ~]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2141/docker-proxy tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 2035/docker-proxy tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1116/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1294/master
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)