title: Can't connect to an AWS MySQL RDS using JDBC when site is deployed to elastic beanstalk
body: <p>So I created a MySQL DB on amazon running on the same account as my tomcat server, it built and is running correctly but can't connect to the database.</p>
  
  <p>I can access the remote database running the site using tomcat on my computer, and I can access the db through MySQL workbench, but when I deploy and run it I get a 500 whenever the site tries to access the database.</p>
  
  <p>I opened up my security on this database to accept any connection and port(lol), and I checked if the mysql java connector.jar in the WEB-INF/libs file is the latest version. I even tried setting the JDBC connection string to localhost to see if it would pick it up, but no luck.</p>
  
  <p>I think I'm missing something, can anyone think of any reason my website's JDBC can access the remote database server from my machine but not from the amazon tomcat server?</p>
  
  <p>Also, this is a student project I'm building.</p>
  
  <p>Hope this description makes sense, maybe someone can think of something I haven't tried:) </p>