source: Dev/branches/cakephp/app/config/database.php.default @ 126

Last change on this file since 126 was 126, checked in by fpvanagthoven, 14 years ago

Cakephp branch.

File size: 3.1 KB
RevLine 
[126]1<?php
2/**
3 * This is core configuration file.
4 *
5 * Use it to configure core behaviour ofCake.
6 *
7 * PHP versions 4 and 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
12 * Licensed under The MIT License
13 * Redistributions of files must retain the above copyright notice.
14 *
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link          http://cakephp.org CakePHP(tm) Project
17 * @package       cake
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)
21 */
22/**
23 * In this file you set up your database connection details.
24 *
25 * @package       cake
26 * @subpackage    cake.config
27 */
28/**
29 * Database configuration class.
30 * You can specify multiple configurations for production, development and testing.
31 *
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
41 *              sybase          - Sybase ASE
42 *              adodb-[drivername]      - ADOdb interface wrapper (see below),
43 *              odbc            - ODBC DBO driver
44 *
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.
48 *
49 * persistent => true / false
50 * Determines whether or not the database should use a persistent connection
51 *
52 * connect =>
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.
57 *
58 * host =>
59 * the host you connect to the database.  To add a socket or port number, use 'port' => #
60 *
61 * prefix =>
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.
64 *
65 * schema =>
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.
68 *
69 * encoding =>
70 * For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the
71 * database.  Uses database default.
72 *
73 */
74class DATABASE_CONFIG {
75
76        var $default = array(
77                'driver' => 'mysql',
78                'persistent' => false,
79                'host' => 'localhost',
80                'login' => 'user',
81                'password' => 'password',
82                'database' => 'database_name',
83                'prefix' => '',
84                //'encoding' => 'utf8',
85        );
86
87        var $test = array(
88                'driver' => 'mysql',
89                'persistent' => false,
90                'host' => 'localhost',
91                'login' => 'user',
92                'password' => 'password',
93                'database' => 'test_database_name',
94                'prefix' => '',
95                //'encoding' => 'utf8',
96        );
97}
Note: See TracBrowser for help on using the repository browser.