java.net.ConnectException: Connection refused (Connection refused) [duplicate]
问题 This question already has an answer here : AWS RDS How to set up a MySQL Database (1 answer) Closed 2 years ago . I have an AWS Elastic Beanstalk instance with Tomcat running a Java RESTful service installed. I then also have a MySQL database instance set up on AWS-RDS . I have the following active security group that allows all inbound and outbound traffic. I am able to connect to the database with MySQL Workbench: Which suggests the Database is okay. So I think the issue is with my Java