db.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * Part of the Fuel framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * NOTICE:
  14. *
  15. * If you need to make modifications to the default configuration, copy
  16. * this file to your app/config folder, and make them in there.
  17. *
  18. * This will allow you to upgrade fuel without losing your custom config.
  19. */
  20. return array(
  21. /*
  22. * If you don't specify a DB configuration name when you create a connection
  23. * the configuration to be used will be determined by the 'active' value
  24. */
  25. 'active' => 'default',
  26. /**
  27. * Base PDO config
  28. */
  29. 'default' => array(
  30. 'type' => 'pdo',
  31. 'connection' => array(
  32. 'persistent' => false,
  33. 'compress' => false,
  34. ),
  35. 'identifier' => '`',
  36. 'table_prefix' => '',
  37. 'charset' => 'utf8',
  38. 'enable_cache' => true,
  39. 'profiling' => false,
  40. ),
  41. /**
  42. * Base MySQLi config
  43. *
  44. 'default' => array(
  45. 'type' => 'mysqli',
  46. 'connection' => array(
  47. 'hostname' => '',
  48. 'username' => '',
  49. 'password' => '',
  50. 'database' => '',
  51. 'persistent' => false,
  52. ),
  53. 'identifier' => '`',
  54. 'table_prefix' => '',
  55. 'charset' => 'utf8',
  56. 'enable_cache' => true,
  57. 'profiling' => false,
  58. ),
  59. */
  60. /**
  61. * Base Redis config
  62. */
  63. 'redis' => array(
  64. 'default' => array(
  65. 'hostname' => '127.0.0.1',
  66. 'port' => 6379,
  67. 'timeout' => null,
  68. )
  69. ),
  70. );