1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= "<?php" ?> defined("SYSPATH") or die("No direct script access.");
/**
* @package Database
*
* Database connection settings, defined as arrays, or "groups". If no group
* name is used when loading the database library, the group named "default"
* will be used.
*
* Each group can be connected to independently, and multiple groups can be
* connected at once.
*
* Group Options:
* benchmark - Enable or disable database benchmarking
* persistent - Enable or disable a persistent connection
* connection - Array of connection specific parameters; alternatively,
* you can use a DSN though it is not as fast and certain
* characters could create problems (like an '@' character
* in a password):
* 'connection' => 'mysql://dbuser:secret@localhost/kohana'
* character_set - Database character set
* table_prefix - Database table prefix
* object - Enable or disable object results
* cache - Enable or disable query caching
* escape - Enable automatic query builder escaping
*/
$config["default"] = array(
"benchmark" => false,
"persistent" => false,
"connection" => array(
"type" => "<?= $type ?>",
"user" => "<?= $user ?>",
"pass" => "<?= $password ?>",
"host" => "<?= $host ?>",
"port" => false,
"socket" => false,
"database" => "<?= $dbname ?>"
),
"character_set" => "utf8",
"table_prefix" => "<?= $prefix ?>",
"object" => true,
"cache" => false,
"escape" => true
);
|