3 * This is core configuration file.
5 * Use it to configure core behaviour ofCake.
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
12 * Licensed under The MIT License
13 * Redistributions of files must retain the above copyright notice.
15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://cakephp.org CakePHP(tm) Project
18 * @subpackage cake.app.config
19 * @since CakePHP(tm) v 0.2.9
20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
23 * In this file you set up your database connection details.
26 * @subpackage cake.config
29 * Database configuration class.
30 * You can specify multiple configurations for production, development and testing.
32 * driver => The name of a supported driver; valid options are as follows:
33 * mysql - MySQL 4 & 5,
34 * mysqli - MySQL 4 & 5 Improved Interface (PHP5 only),
35 * sqlite - SQLite (PHP5 only),
36 * postgres - PostgreSQL 7 and higher,
37 * mssql - Microsoft SQL Server 2000 and higher,
38 * db2 - IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
39 * oracle - Oracle 8 and higher
40 * firebird - Firebird/Interbase
42 * adodb-[drivername] - ADOdb interface wrapper (see below),
43 * odbc - ODBC DBO driver
45 * You can add custom database drivers (or override existing drivers) by adding the
46 * appropriate file to app/models/datasources/dbo. Drivers should be named 'dbo_x.php',
47 * where 'x' is the name of the database.
49 * persistent => true / false
50 * Determines whether or not the database should use a persistent connection
53 * ADOdb set the connect to one of these
54 * (http://phplens.com/adodb/supported.databases.html) and
55 * append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
56 * For all other databases, this setting is deprecated.
59 * the host you connect to the database. To add a socket or port number, use 'port' => #
62 * Uses the given prefix for all the tables in this database. This setting can be overridden
63 * on a per-table basis with the Model::$tablePrefix property.
66 * For Postgres and DB2, specifies which schema you would like to use the tables in. Postgres defaults to
67 * 'public', DB2 defaults to empty.
70 * For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the
71 * database. Uses database default.
74 class DATABASE_CONFIG {
78 'persistent' => false,
79 'host' => 'localhost',
81 'password' => 'password',
82 'database' => 'database_name',
88 'persistent' => false,
89 'host' => 'localhost',
91 'password' => 'password',
92 'database' => 'test_database_name',