diff options
-rw-r--r-- | config/bootstrap/connections.php | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/config/bootstrap/connections.php b/config/bootstrap/connections.php index a9355e6..645e587 100644 --- a/config/bootstrap/connections.php +++ b/config/bootstrap/connections.php @@ -38,9 +38,21 @@ use lithium\data\Connections; /** + * Uncomment this configuration to use MySQL as your default database. + */ +Connections::add('default', array( + 'type' => 'database', + 'adapter' => 'MySql', + 'host' => '127.0.0.1', + 'login' => 'otakuhub', + 'password' => 'otakuhub', + 'database' => 'otakuhub' + )); + +/** * Uncomment this configuration to use MongoDB as your default database. */ - Connections::add('default', array( + Connections::add('mongo', array( 'type' => 'MongoDb', 'host' => 'localhost', 'database' => 'otakuhub', @@ -57,16 +69,6 @@ use lithium\data\Connections; // 'database' => 'my_app' // )); -/** - * Uncomment this configuration to use MySQL as your default database. - */ -// Connections::add('default', array( -// 'type' => 'database', -// 'adapter' => 'MySql', -// 'host' => 'localhost', -// 'login' => 'root', -// 'password' => '', -// 'database' => 'my_app' -// )); + ?>
\ No newline at end of file |