ERROR 2005 (HY000): Unknown MySQL server host in aws

旧巷老猫 提交于 2019-12-04 16:29:24

问题


I have created an e-commerce site in angular js. And I need to host the same in amazon web service.

So inorder to host the same I created an ec2 instance first. Now after that added an rds instance with a security group of VPC by allowing all ip's as outbound and inbound. While creating security group I specified for mysql and for all connection. Still after I remotely loged into the instance and try to connect to the end point from rds instance using

mysql -u username -p password -h ********.ap-southeast-1.rds.amazonaws.com:3306

I get an error

ERROR 2005 (HY000): Unknown MySQL server host xxxxxxxxx (0)

I created the instance from Asia Pacific (singapore) region since I am a resident of india.


回答1:


It should be ********.ap-southeast-1.rds.amazonaws.com instead of ********.ap-southeast-1.rds.amazonaws.com:3306

You do not need the port number in the end.



来源:https://stackoverflow.com/questions/25659051/error-2005-hy000-unknown-mysql-server-host-in-aws

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!