database.php.default 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /* SVN FILE: $Id$ */
  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$
  25. * @modifiedby $LastChangedBy$
  26. * @lastmodified $Date$
  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 => The name of a supported driver; valid options are as follows:
  40. * mysql - MySQL 4 & 5,
  41. * mysqli - MySQL 4 & 5 Improved Interface (PHP5 only),
  42. * sqlite - SQLite (PHP5 only),
  43. * postgres - PostgreSQL 7 and higher,
  44. * mssql - Microsoft SQL Server 2000 and higher,
  45. * db2 - IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
  46. * oracle - Oracle 8 and higher
  47. * adodb-[drivername] - ADOdb interface wrapper (see below),
  48. * pear-[drivername] - PEAR::DB wrapper
  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
  65. * To add a port number use 'port' => #
  66. *
  67. * prefix =>
  68. * Uses the given prefix for all the tables in this database. This setting can be overridden
  69. * on a per-table basis with the Model::$tablePrefix property.
  70. *
  71. */
  72. class DATABASE_CONFIG {
  73. var $default = array(
  74. 'driver' => 'mysql',
  75. 'persistent' => false,
  76. 'host' => 'localhost',
  77. 'login' => 'user',
  78. 'password' => 'password',
  79. 'database' => 'project_name',
  80. 'prefix' => ''
  81. );
  82. var $test = array(
  83. 'driver' => 'mysql',
  84. 'persistent' => false,
  85. 'host' => 'localhost',
  86. 'login' => 'user',
  87. 'password' => 'password',
  88. 'database' => 'project_name-test',
  89. 'prefix' => ''
  90. );
  91. }
  92. ?>