2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This is core configuration file.
|
|
|
|
*
|
2011-05-23 03:19:13 +00:00
|
|
|
* Use it to configure core behaviour of Cake.
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2010-10-03 16:38:58 +00:00
|
|
|
* PHP 5
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2009-11-06 06:46:59 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2011-05-29 21:31:39 +00:00
|
|
|
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2011-05-29 21:31:39 +00:00
|
|
|
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2009-11-06 06:00:11 +00:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package app.Config
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2009-11-06 06:51:51 +00:00
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* In this file you set up your database connection details.
|
|
|
|
*
|
2010-12-24 18:57:20 +00:00
|
|
|
* @package cake.config
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Database configuration class.
|
|
|
|
* You can specify multiple configurations for production, development and testing.
|
|
|
|
*
|
|
|
|
* driver => The name of a supported driver; valid options are as follows:
|
2011-05-16 19:14:46 +00:00
|
|
|
* Database/Mysql - MySQL 4 & 5,
|
|
|
|
* Database/Sqlite - SQLite (PHP5 only),
|
|
|
|
* Database/Postgres - PostgreSQL 7 and higher,
|
2011-05-23 03:19:13 +00:00
|
|
|
* Database/Sqlserver - Microsoft SQL Server 2005 and higher,
|
2011-05-16 19:14:46 +00:00
|
|
|
* Database/Oracle - Oracle 8 and higher
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* You can add custom database drivers (or override existing drivers) by adding the
|
2011-06-20 00:28:40 +00:00
|
|
|
* appropriate file to app/Model/Datasource/Database. Drivers should be named 'MyDriver.php',
|
2011-03-16 04:14:37 +00:00
|
|
|
*
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* persistent => true / false
|
|
|
|
* Determines whether or not the database should use a persistent connection
|
|
|
|
*
|
|
|
|
* host =>
|
2011-03-16 04:14:37 +00:00
|
|
|
* the host you connect to the database. To add a socket or port number, use 'port' => #
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* prefix =>
|
|
|
|
* Uses the given prefix for all the tables in this database. This setting can be overridden
|
|
|
|
* on a per-table basis with the Model::$tablePrefix property.
|
|
|
|
*
|
|
|
|
* schema =>
|
2011-03-16 04:14:37 +00:00
|
|
|
* For Postgres specifies which schema you would like to use the tables in. Postgres defaults to 'public'.
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* encoding =>
|
2011-03-16 04:14:37 +00:00
|
|
|
* For MySQL, Postgres specifies the character encoding to use when connecting to the
|
|
|
|
* database. Uses database default not specified.
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
class DATABASE_CONFIG {
|
|
|
|
|
2010-04-04 07:14:00 +00:00
|
|
|
public $default = array(
|
2011-03-16 04:14:37 +00:00
|
|
|
'datasource' => 'Database/Mysql',
|
2008-05-30 11:40:08 +00:00
|
|
|
'persistent' => false,
|
|
|
|
'host' => 'localhost',
|
|
|
|
'login' => 'user',
|
|
|
|
'password' => 'password',
|
|
|
|
'database' => 'database_name',
|
|
|
|
'prefix' => '',
|
|
|
|
);
|
|
|
|
|
2010-04-04 07:14:00 +00:00
|
|
|
public $test = array(
|
2011-03-16 04:14:37 +00:00
|
|
|
'datasource' => 'Database/Mysql',
|
2008-05-30 11:40:08 +00:00
|
|
|
'persistent' => false,
|
|
|
|
'host' => 'localhost',
|
|
|
|
'login' => 'user',
|
|
|
|
'password' => 'password',
|
|
|
|
'database' => 'test_database_name',
|
|
|
|
'prefix' => '',
|
|
|
|
);
|
|
|
|
}
|