From 29b78de55356df916dc44c014e86a777fa23cc28 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sat, 9 Jul 2011 23:26:12 -0400 Subject: defined a seperate connection for mongo and MySql --- config/bootstrap/connections.php | 26 ++++++++++++++------------ 1 file 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 @@ -37,10 +37,22 @@ */ 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 -- cgit v1.2.3