Cant connect to mysql server on AWS RDS

前端 未结 3 1223
醉梦人生
醉梦人生 2021-02-14 20:01

I am new to AWS RDS. I have created RDS instance.But i dont know, how can i connect this DB. I tried like this

mysql -h awsinstanamehere.rds.amazonaws.com -P 33         


        
3条回答
  •  不要未来只要你来
    2021-02-14 20:25

    RDS has a security group - in the AWS console, RDS, there's an entry for security groups.

    If you didn't explicitly create a security group, you are probably using "default". You should probably have one group per RDS instance.

    You will need to make sure that port 3306 is open to your local network, as well as whatever application you will be using to connect to it. You can allow access by IP or by security group.

提交回复
热议问题