Permalink
Browse files

The MySQL PDO must be connected without the dbname in its dsn because…

… the db being created does not exist yet.


Tested MySQL Server version 5.5.21.
  • Loading branch information...
1 parent bd4c79d commit b4475d27fb1eb846d10cc2d2e2bd164f037508e3 Tero Kaisti committed Jun 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Command/DatabaseCreateCommand.php
@@ -82,8 +82,8 @@ private function getTemporaryConfiguration($name, $config)
$dbName = $this->parseDbName($config['connection']['dsn']);
$config['connection']['dsn'] = preg_replace(
- '#dbname='.$dbName.'#',
- 'dbname='.strtolower($config['adapter']),
+ '#dbname='.$dbName.';#',
+ '',
$config['connection']['dsn']
);

0 comments on commit b4475d2

Please sign in to comment.