3 個答案
- 最新
- 最多得票
- 最多評論
1
Hi,
Aurora serverless is currently not publicly accessible.
I advise you to launch a bastion host and direct traffic through SSH tunneling.
Steps to install bastion host:
- Launch an Amazon Linux EC2 instance.
- Configure your EC2 configurations.
- Edit the security group for your existing Aurora MySQL serverless db instance and add SSH for port 22. Add a self-referencing security group which will be of type MySQL/Aurora and the source will be sg-id (The security group id).
Steps to install MySQL software on EC2 instance:
- Login the EC2 instance.
- Enter the following command, this will install MySQL software on your EC2 instance.
sudo yum install mysql
- Now check connectivity from your EC2 instance to your Aurora MySQL serverless instance
mysql -h <db endpoint> -u <username> -p
- Enter password
If your database instance fails to connect, check your security group.
Launch MySQL workbench and configure the appropriate settings:
- Create new Connection.
- Enter a connection name and select Standard TCP/IP over SSH for Connection Method.
- For SSH Hostname, enter your EC2 instance public DNS endpoint.
- For SSH Username, enter ec2-user.
- For SSH Key File, select the path you downloaded your EC2 instance .pem file.
- For MySQL hostname, Enter your Aurora MySQL endpoint and port number.
- Add your username and password.
These steps will allow you to successfully access your Aurora MySQL serverless db instance through MySQL Workbench.
I hope this helps.
Regards
/Bennie
已回答 4 年前
相關內容
- AWS 官方已更新 3 年前
- AWS 官方已更新 1 年前