Subversion-Projekte lars-tiefland.cakephp

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?php
2
/* SVN FILE: $Id: database.php.default 8004 2009-01-16 20:15:21Z gwoo $ */
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-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
12
 *
13
 * Licensed under The MIT License
14
 * Redistributions of files must retain the above copyright notice.
15
 *
16
 * @filesource
17
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
18
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
19
 * @package       cake
20
 * @subpackage    cake.app.config
21
 * @since         CakePHP(tm) v 0.2.9
22
 * @version       $Revision: 8004 $
23
 * @modifiedby    $LastChangedBy: gwoo $
24
 * @lastmodified  $Date: 2009-01-16 12:15:21 -0800 (Fri, 16 Jan 2009) $
25
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
26
 */
27
/**
28
 * In this file you set up your database connection details.
29
 *
30
 * @package       cake
31
 * @subpackage    cake.config
32
 */
33
/**
34
 * Database configuration class.
35
 * You can specify multiple configurations for production, development and testing.
36
 *
37
 * driver => The name of a supported driver; valid options are as follows:
38
 *		mysql 		- MySQL 4 & 5,
39
 *		mysqli 		- MySQL 4 & 5 Improved Interface (PHP5 only),
40
 *		sqlite		- SQLite (PHP5 only),
41
 *		postgres	- PostgreSQL 7 and higher,
42
 *		mssql		- Microsoft SQL Server 2000 and higher,
43
 *		db2			- IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
44
 *		oracle		- Oracle 8 and higher
45
 *		firebird	- Firebird/Interbase
46
 *		sybase		- Sybase ASE
47
 *		adodb-[drivername]	- ADOdb interface wrapper (see below),
48
 *		odbc		- ODBC DBO driver
49
 *
50
 * You can add custom database drivers (or override existing drivers) by adding the
51
 * appropriate file to app/models/datasources/dbo.  Drivers should be named 'dbo_x.php',
52
 * where 'x' is the name of the database.
53
 *
54
 * persistent => true / false
55
 * Determines whether or not the database should use a persistent connection
56
 *
57
 * connect =>
58
 * ADOdb set the connect to one of these
59
 *	(http://phplens.com/adodb/supported.databases.html) and
60
 *	append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
61
 * For all other databases, this setting is deprecated.
62
 *
63
 * host =>
64
 * the host you connect to the database.  To add a socket or port number, use 'port' => #
65
 *
66
 * prefix =>
67
 * Uses the given prefix for all the tables in this database.  This setting can be overridden
68
 * on a per-table basis with the Model::$tablePrefix property.
69
 *
70
 * schema =>
71
 * For Postgres and DB2, specifies which schema you would like to use the tables in. Postgres defaults to
72
 * 'public', DB2 defaults to empty.
73
 *
74
 * encoding =>
75
 * For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the
76
 * database.  Uses database default.
77
 *
78
 */
79
class DATABASE_CONFIG {
80
 
81
	var $default = array(
82
		'driver' => 'mysql',
83
		'persistent' => false,
84
		'host' => 'localhost',
85
		'login' => 'user',
86
		'password' => 'password',
87
		'database' => 'database_name',
88
		'prefix' => '',
89
	);
90
 
91
	var $test = array(
92
		'driver' => 'mysql',
93
		'persistent' => false,
94
		'host' => 'localhost',
95
		'login' => 'user',
96
		'password' => 'password',
97
		'database' => 'test_database_name',
98
		'prefix' => '',
99
	);
100
}
101
?>