AWS Aurora MySQL serverless: how to connect from MySQL Workbench

前端 未结 8 1216
忘掉有多难
忘掉有多难 2020-12-13 18:46

I was trying to use AWS Aurora Serverless for MySQL in my project, but I am impossible to connect to it, though I have the endpoint, username, password.

What I have

8条回答
  •  情话喂你
    2020-12-13 19:16

    My guess is your security group is not correctly setup for access. You need to explicitly allow remote access on that port to that instance.

    From the official docs:

    Two common causes of connection failures to a new DB instance are:

    • The DB instance was created using a security group that does not authorize connections from the device or Amazon EC2 instance where the MySQL application or utility is running. If the DB instance was created in a VPC, it must have a VPC security group that authorizes the connections. If the DB instance was created outside of a VPC, it must have a DB security group that authorizes the connections.

    • The DB instance was created using the default port of 3306, and your company has firewall rules blocking connections to that port from devices in your company network. To fix this failure, recreate the instance with a different port.

    See here for more information:

    https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html

提交回复
热议问题