Cant connect to mysql server on AWS RDS

前端 未结 2 1869
耶瑟儿~
耶瑟儿~ 2021-02-14 19:43

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         


        
2条回答
  •  日久生厌
    2021-02-14 20:27

    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.

提交回复
热议问题