title: Metabase Database Connection To MySQL RDS: Timed out after 5000 milliseconds
body: <p>My Metabase is running on an Amazon Beanstalk instance and I have created an RDS database (MySQL) to which I have access to using the MySQL Workbench.</p>
  
  <p>When I try to add my database to Metabase, I get the following error message:</p>
  
  <blockquote>
    <p>Timed out after 5000 milliseconds.</p>
  </blockquote>
  
  <p>I have tried to increase the timeout on the RDS instance but apparently, you should create a new parameter group. But I do not know how to mention that parameter group to Metabase (in <em>Additional JDBC connection string options</em> maybe?)</p>
  
  <p>The MySQL RDS is publicly available.</p>
  
  <p><strong>Update: Security Group Settings on RDS Instance</strong></p>
  
  <pre><code>Inbound: 
  Custom TCP Rule  
  TCP  
  3306
  83.219.196.40/32
  
  Outbound: 
  All traffic 
  All 
  All
  0.0.0.0/0
  </code></pre>
  
  <p><strong>Update 2: Metabase Log Message</strong></p>
  
  <pre><code>Jun 25 12:05:13 ERROR metabase.driver :: Failed to connect to database: Timed out after 5000 milliseconds.
  Jun 25 12:05:13 DEBUG metabase.middleware :: POST /api/database 400 (5 s) (0 DB calls)
  {:valid false, :dbname "Timed out after 5000 milliseconds.", :message "Timed out after 5000 milliseconds."}
  </code></pre>