title: Connect to Amazon RDS with PHP
body: <p>I am trying to connect my RDS Instance with my PHP connection file.</p>
  
  <p>This is what I have in my file:</p>
  
  <pre><code>define('DB_SERVER', 'localhost');
  define('DB_USERNAME', 'User Name');
  define('DB_PASSWORD', 'Password');
  define('DB_DATABASE', 'DATABASE');
  
  $connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error());
  $database = mysql_select_db(DB_DATABASE) or die(mysql_error());
  </code></pre>
  
  <p>I replaced localhost with my endpoint (rds thing) url, username and password with my RDS Instance user and pass and database name the one I've set when I created the instance. But it doesn't seem to work. </p>
  
  <p><strong>Is there anything else I have to do that I am not aware of or should it work?</strong></p>