1 |
6daefa8c
|
Petr Lukašík
|
<?php
|
2 |
|
|
/* SVN FILE: $Id: database.php.default 4409 2007-02-02 13:20:59Z phpnut $ */
|
3 |
|
|
/**
|
4 |
|
|
* This is core configuration file.
|
5 |
|
|
*
|
6 |
|
|
* Use it to configure core behaviour ofCake.
|
7 |
|
|
*
|
8 |
|
|
* PHP versions 4 and 5
|
9 |
|
|
*
|
10 |
|
|
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
11 |
|
|
* Copyright 2005-2007, Cake Software Foundation, Inc.
|
12 |
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
13 |
|
|
* Las Vegas, Nevada 89104
|
14 |
|
|
*
|
15 |
|
|
* Licensed under The MIT License
|
16 |
|
|
* Redistributions of files must retain the above copyright notice.
|
17 |
|
|
*
|
18 |
|
|
* @filesource
|
19 |
|
|
* @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
|
20 |
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
21 |
|
|
* @package cake
|
22 |
|
|
* @subpackage cake.app.config
|
23 |
|
|
* @since CakePHP(tm) v 0.2.9
|
24 |
|
|
* @version $Revision: 4409 $
|
25 |
|
|
* @modifiedby $LastChangedBy: phpnut $
|
26 |
|
|
* @lastmodified $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
|
27 |
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
28 |
|
|
*/
|
29 |
|
|
/**
|
30 |
|
|
* In this file you set up your database connection details.
|
31 |
|
|
*
|
32 |
|
|
* @package cake
|
33 |
|
|
* @subpackage cake.config
|
34 |
|
|
*/
|
35 |
|
|
/**
|
36 |
|
|
* Database configuration class.
|
37 |
|
|
* You can specify multiple configurations for production, development and testing.
|
38 |
|
|
*
|
39 |
|
|
* driver =>
|
40 |
|
|
* mysql, postgres, sqlite, adodb-drivername, pear-drivername
|
41 |
|
|
*
|
42 |
|
|
* connect =>
|
43 |
|
|
* MySQL set the connect to either mysql_pconnect of mysql_connect
|
44 |
|
|
* PostgreSQL set the connect to either pg_pconnect of pg_connect
|
45 |
|
|
* SQLite set the connect to sqlite_popen sqlite_open
|
46 |
|
|
* ADOdb set the connect to one of these
|
47 |
|
|
* (http://phplens.com/adodb/supported.databases.html) and
|
48 |
|
|
* append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
|
49 |
|
|
*
|
50 |
|
|
* host =>
|
51 |
|
|
* the host you connect to the database
|
52 |
|
|
* MySQL 'localhost' to add a port number use 'localhost:port#'
|
53 |
|
|
* PostgreSQL 'localhost' to add a port number use 'localhost port=5432'
|
54 |
|
|
*
|
55 |
|
|
*/
|
56 |
|
|
class DATABASE_CONFIG
|
57 |
|
|
{
|
58 |
|
|
var $default = array('driver' => 'postgres',
|
59 |
|
|
'connect' => 'pg_pconnect',
|
60 |
|
|
'host' => 'localhost:15432',
|
61 |
|
|
'login' => 'dbowner',
|
62 |
|
|
'password' => 'dbowner',
|
63 |
|
|
'database' => 'dictionary',
|
64 |
|
|
'prefix' => '');
|
65 |
|
|
|
66 |
|
|
var $test = array('driver' => 'postgres',
|
67 |
|
|
'connect' => 'pg_pconnect',
|
68 |
|
|
'host' => 'localhost:15432',
|
69 |
|
|
'login' => 'dbowner',
|
70 |
|
|
'password' => 'dbowner',
|
71 |
|
|
'database' => 'dictionary',
|
72 |
|
|
'prefix' => '');
|
73 |
|
|
}
|
74 |
|
|
?>
|