root/trunk/system/config/database.php

Revision 3326, 1.4 kB (checked in by Shadowhand, 2 months ago)

Core cleanup:

  • Removed SYSPATH check from all files
  • Changed copyrights to 2007-2008 where they had not been updated
  • Started to add @example doc comments
  • Property svn:eol-style set to LF
  • Property copyright set to Copyright (c) 2007 Kohana Team
  • Property svn:keywords set to Id
Line 
1<?php
2/**
3 * @package  Database
4 *
5 * Database connection settings, defined as arrays, or "groups". If no group
6 * name is used when loading the database library, the group named "default"
7 * will be used.
8 *
9 * Each group can be connected to independently, and multiple groups can be
10 * connected at once.
11 *
12 * Group Options:
13 *  benchmark     - Enable or disable database benchmarking
14 *  persistent    - Enable or disable a persistent connection
15 *  connection    - Array of connection specific parameters; alternatively,
16 *                  you can use a DSN though it is not as fast and certain
17 *                  characters could create problems (like an '@' character
18 *                  in a password):
19 *                  'connection'    => 'mysql://dbuser:secret@localhost/kohana'
20 *  character_set - Database character set
21 *  table_prefix  - Database table prefix
22 *  object        - Enable or disable object results
23 *  cache         - Enable or disable query caching
24 *    escape        - Enable automatic query builder escaping
25 */
26$config['default'] = array
27(
28    'benchmark'     => TRUE,
29    'persistent'    => FALSE,
30    'connection'    => array
31    (
32        'type'     => 'mysql',
33        'user'     => 'dbuser',
34        'pass'     => 'p@ssw0rd',
35        'host'     => 'localhost',
36        'port'     => FALSE,
37        'socket'   => FALSE,
38        'database' => 'kohana'
39    ),
40    'character_set' => 'utf8',
41    'table_prefix'  => '',
42    'object'        => TRUE,
43    'cache'         => FALSE,
44    'escape'        => TRUE
45);
Note: See TracBrowser for help on using the browser.