AWS Aurora MySQL serverless: how to connect from MySQL Workbench

前端 未结 8 1208
忘掉有多难
忘掉有多难 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条回答
  •  萌比男神i
    2020-12-13 19:09

    Initially, I was got stuck in the same scenario Points to be noted while connecting AWS RDS Aurora

    • Cant connect Public, you need an EC2 instance with the same region where Aurora is been created.

    • Aurora Public access should be checked No(it worked for me).

    • You need to create the security group, where you should add Inbound and Outbound rules(IpAddress of EC2 instances).

    Ex: Type = MYSQL/AURORA, Protocol=TCP, PortRange=3306,Source=Custom and your IP Address Range,

    • modify instance and security group to the instance and apply the changes immediately.

    • While creating Aurora, u will create MasterName, Pwd, and default schema to connect.

    • After creating, go to cluster and take the cluster endpoint and log in with your EC2 Instance and with MySQL Workbench, Hostname as your cluster endpoint, username and pwd entered while creating aurora database.

提交回复
热议问题