title: how to connect to the database in openshift application
body: <p>I did as following </p>
  
  <p>MySQL 5.1 database added. Please make note of these credentials:</p>
  
  <pre><code>    Root User: xxxxxxx
      Root Password: xxxxxxx
      Database Name: php
  
  
   Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
  </code></pre>
  
  <p>You can manage your new MySQL database by also embedding phpmyadmin-3.4.
      The phpmyadmin username and password will be the same as the MySQL credentials above.</p>
  
  <p>phpMyAdmin 3.4 added. Please make note of these MySQL credentials again:</p>
  
  <pre><code>    Root User: xxxxxxx
      Root Password: xxxxxxx
  
      URL: https://php-doers.rhcloud.com/phpmyadmin/
  </code></pre>
  
  <p>and i try to connect db using bellow PDO code .but it does not work </p>
  
  <pre><code>$dbh = new PDO('mysql:host=mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/;dbname=php', "xxxxxx, "xxxxxx");
  </code></pre>
  
  <p>I don't know what is the connection URL mean ?</p>