EC2 mysql 远程连接不上的问题

xiaoxiao2021-02-28  24

一、在本地测试

cmd

telnet 52.123.456.12 3306    超时

telnet 52.123.456.12 22    可以

二、服务器端口检测

三、亚马逊云平台

在“安全组”里开启了3306端口

四、my.conf修改

mysqld.cnf中的 bind-address = 127.0.0.1 为 bind-address = 0.0.0.0 (代表任意访问)

五、mysql用户

update user set Host='%' where User='root'

转载请注明原文地址: https://www.6miu.com/read-2630212.html

最新回复(0)