summaryrefslogtreecommitdiff
path: root/installer/database_config.php
diff options
context:
space:
mode:
Diffstat (limited to 'installer/database_config.php')
-rw-r--r--installer/database_config.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/installer/database_config.php b/installer/database_config.php
new file mode 100644
index 0000000..fb7dd11
--- /dev/null
+++ b/installer/database_config.php
@@ -0,0 +1,46 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<?php print "<?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' => '<?php print $type ?>',
+ 'user' => '<?php print $user ?>',
+ 'pass' => '<?php print $password ?>',
+ 'host' => '<?php print $host ?>',
+ 'port' => <?php if (!empty($port)): ?>'<?php print $port ?>' <?php else: ?>false<?php endif ?>,
+ 'socket' => false,
+ 'database' => '<?php print $dbname ?>',
+ 'params' => null,
+ ),
+ 'character_set' => 'utf8',
+ 'table_prefix' => '<?php print $prefix ?>',
+ 'object' => true,
+ 'cache' => false,
+ 'escape' => true
+); \ No newline at end of file