database.php.default 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?PHP
  2. //////////////////////////////////////////////////////////////////////////
  3. // + $Id$
  4. // +------------------------------------------------------------------+ //
  5. // + Cake <https://developers.nextco.com/cake/> + //
  6. // + Copyright: (c) 2005, Cake Authors/Developers + //
  7. // +------------------------------------------------------------------+ //
  8. // + Licensed under The MIT License + //
  9. //////////////////////////////////////////////////////////////////////////
  10. /**
  11. * In this file you set up your database connection details.
  12. */
  13. /**
  14. * Database configuration class.
  15. * You can specify multiple configurations for production, development and testing.
  16. */
  17. class DATABASE_CONFIG {
  18. function devel () {
  19. return array(
  20. 'driver' => 'mysql',
  21. 'host' => 'localhost',
  22. 'login' => 'www',
  23. 'password' => '',
  24. 'database' => 'project_name'
  25. );
  26. }
  27. function test () {
  28. return array(
  29. 'driver' => 'mysql',
  30. 'host' => 'localhost',
  31. 'login' => 'www-test',
  32. 'password' => '',
  33. 'database' => 'project_name-test'
  34. );
  35. }
  36. }
  37. ?>