Avail feature updated
[ninja.git] / application / config / database.php
blobc6192b2b9b00e410f9353fb6134e599e6b51cebc
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * @package Database
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.
9 * Each group can be connected to independently, and multiple groups can be
10 * connected at once.
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
26 $config['default'] = array
28 'benchmark' => TRUE,
29 'persistent' => FALSE,
30 'connection' => array
32 'type' => 'mysql',
33 #'oracle',
34 'user' => 'merlin',
35 'pass' => 'merlin',
36 'host' => 'localhost',
37 'port' => FALSE,
38 'socket' => FALSE,
39 'database' => 'merlin',
40 # some database backends allow you to specify a custom connection string
41 # that overrides the options above here:
42 'conn_str' => FALSE
44 'character_set' => 'latin1',
45 'table_prefix' => '',
46 'object' => TRUE,
47 'cache' => FALSE,
48 'escape' => TRUE
51 $config['nacoma'] = array
53 'benchmark' => TRUE,
54 'persistent' => FALSE,
55 'connection' => array
57 'type' => 'mysql',
58 #'oracle',
59 'user' => 'nacoma',
60 'pass' => 'nacoma',
61 'host' => 'localhost',
62 'port' => FALSE,
63 'socket' => FALSE,
64 'database' => 'nacoma',
65 # some database backends allow you to specify a custom connection string
66 # that overrides the options above here:
67 'conn_str' => FALSE
69 'character_set' => 'latin1',
70 'table_prefix' => '',
71 'object' => TRUE,
72 'cache' => FALSE,
73 'escape' => TRUE