2009-01-19 07:26:25 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-01-20 00:54:02 +00:00
|
|
|
<?php print "<?php" ?> defined("SYSPATH") or die("No direct script access.");
|
2009-01-19 03:31:13 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @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
|
|
|
|
|
*/
|
2009-04-23 23:58:16 +00:00
|
|
|
$config['default'] = array(
|
|
|
|
|
'benchmark' => false,
|
|
|
|
|
'persistent' => false,
|
|
|
|
|
'connection' => array(
|
|
|
|
|
'type' => '<?php print $type ?>',
|
|
|
|
|
'user' => '<?php print $user ?>',
|
2012-05-15 10:54:18 -07:00
|
|
|
'pass' => '<?php print $password ?>',
|
2009-04-23 23:58:16 +00:00
|
|
|
'host' => '<?php print $host ?>',
|
2009-11-12 14:42:37 -08:00
|
|
|
'port' => <?php if (!empty($port)): ?>'<?php print $port ?>' <?php else: ?>false<?php endif ?>,
|
2009-04-23 23:58:16 +00:00
|
|
|
'socket' => false,
|
2009-12-21 21:27:43 -08:00
|
|
|
'database' => '<?php print $dbname ?>',
|
|
|
|
|
'params' => null,
|
2009-01-19 03:31:13 +00:00
|
|
|
),
|
2009-04-23 23:58:16 +00:00
|
|
|
'character_set' => 'utf8',
|
|
|
|
|
'table_prefix' => '<?php print $prefix ?>',
|
|
|
|
|
'object' => true,
|
|
|
|
|
'cache' => false,
|
|
|
|
|
'escape' => true
|
2017-06-08 11:55:54 -07:00
|
|
|
);
|