diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-09 23:26:12 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-09 23:26:12 -0400 |
commit | 29b78de55356df916dc44c014e86a777fa23cc28 (patch) | |
tree | b0b1d24bd8e25e5b09955ab68152d96b4cb86d08 /config/bootstrap | |
parent | 00d50594e51b8701b6117c0092ec8027c5d49a65 (diff) | |
download | otakuhub-29b78de55356df916dc44c014e86a777fa23cc28.tar.xz |
defined a seperate connection for mongo and MySql
Diffstat (limited to 'config/bootstrap')
-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 |