为什么MySQL远程连不上

58次阅读

共计 571 个字符,预计需要花费 2 分钟才能阅读完成。

内容最后由 伊斯蓝 于 2023-2-6 23:01 编辑 用 Navicat 连不上 MySQLroot 账号的 host 已经改成 % 密码认证方式也改成 mysql_native_password 重新建个远程用户并赋予权限也是连不上总是提示 2013 – Lost connection to server during query 但是改个错的用户名或密码就提示 2002 – Can\’t connect to server on \’xxx.xxx.xxx.xxx\'(10060) 防火墙已经检查过 3306 是放行的就算关闭防火墙也没用 /etc/my.cnf 配置文件添加 skip-name-resolve 也没用 rooney 2023-02-06 22:51 2netstat -antu|grep 3306 雨墨 2023-02-06 22:53 3 换 MySQL 8.0 colla 2023-02-06 23:00 4 配置文件也要改 bind-address= 0.0.0.0 伊斯蓝 2023-02-06 23:01 5rooney 发表于 2023-2-6 22:51netstat -antu|grep 3306tcp6       0      0 :::33060                :::*                    LISTENtcp6       0      0 :::3306                 :::*                    LISTEN

正文完
 0