[英]Remotely connect to an aws-windows instance based MySQL Database
AWS
EC2 Windows_Server-2016 instance. 我已经启动了一个AWS
EC2 Windows_Server-2016实例。 Here's what my AWS
instance security group looks like : 我的AWS
实例安全组如下所示:
I have tried connecting to the MySQL server using SQLYOG using 2 different scenarios : 我尝试使用2种不同情况使用SQLYOG连接到MySQL服务器:
None of the methods used allows me to connect.I try same procedure with a linux based server and can connect successfully. 所使用的方法均不允许我进行连接。我在基于linux的服务器上尝试相同的过程,并且可以成功连接。 Please let me know where am I going wrong while using a windows based MySQL hosting. 使用基于Windows的MySQL托管时,请告诉我哪里出了问题。
MySQL has an extra level of IP protection for remote clients. MySQL为远程客户端提供了更高级别的IP保护。 You have to GRANT
access to the remote ip
(your house of office) to be able to connect. 你必须GRANT
访问remote ip
(你的办公用房),才能进行连接。 As root, you have to do : 作为根,您必须执行以下操作:
GRANT ALL ON <db>.* TO '<username>'@'<remote ip>' IDENTIFIED BY '<remote_password>';
Where is the DB you are trying to connect to etc. 您要连接到的数据库在哪里等
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.