1
votes

I have created a AWS RDS database instance and I am trying to connect it to Datagrip. I chose Easy create, MySQL, Freetier and set the name as audiotranscribe. The profile of the instance is as follows:

enter image description here

In Datagrip I selected MySQL as the data source, used the password and username I set the instance up with, and set the hostname as the endpoint:

enter image description here

However, I'm getting the error:

[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up. java.net.UnknownHostException:

Could anybody explain what I'm doing wrong? Thanks.

1

1 Answers

5
votes

The instance is not publicly accessible, so you will not be able to connect to it from the Internet. You will need to either make it publicly accessible (not a good idea) or connect to it through a VPN.