title: Doctrine 2 configuration with MySQL
body: <p>I'm busy with Doctrine2, but I can't get it to work. </p>
  
  <p>Everything works fine out of the box with sqlite. But when I try to change the database in the sandbox demo to MySQL I'm getting confused. This is what I did. I created a database, changed the connectionOptions array to:</p>
  
  <pre><code>$connectionOptions = array(
      'driver' =&gt; 'pdo_mysql',
      'path' =&gt; __DIR__.'/mysql.php'
  );
  </code></pre>
  
  <p>the 'path' entry exists and looks like this:</p>
  
  <pre><code>$connectionParams = array(
      'dbname' =&gt; 'db_test',
      'user' =&gt; 'test',
      'password' =&gt; 'p4ssw0rd',
      'host' =&gt; 'localhost',
      'driver' =&gt; 'pdo_mysql',
  );
  </code></pre>
  
  <p>When I run the command to create the database:</p>
  
  <pre><code> php doctrine orm:schema-tool:create
  </code></pre>
  
  <p>Which gives me the error: </p>
  
  <pre><code> no database selected
  </code></pre>
  
  <p>Seems to be a clear message. But how can I change the databasename, cause the one specified in mysql.php (see above) does excist and should be the one it uses! I searched for it for hours, but I cannot find it anywhere.</p>