Permalink
Browse files

Added example K3 database file

  • Loading branch information...
1 parent 68389f0 commit 195982822f1442933d407c331f53efc3bbe63b95 @deepwinter deepwinter committed May 7, 2011
Showing with 51 additions and 0 deletions.
  1. +51 −0 application/config/databaseK3.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * @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(
+ 'type' => 'mysql',
+ 'connection' => array(
+ /**
+ * The following options are available for MySQL:
+ *
+ * string hostname server hostname, or socket
+ * string database database name
+ * string username database username
+ * string password database password
+ * boolean persistent use persistent connections?
+ *
+ * Ports and sockets may be appended to the hostname.
+ */
+ 'hostname' => 'localhost',
+ 'database' => 'fullobject_dev',
+ 'username' => 'root',
+ 'password' => 'root',
+ 'persistent' => FALSE,
+ ),
+ 'table_prefix' => '',
+ 'charset' => 'utf8',
+ 'caching' => FALSE,
+ 'profiling' => TRUE,
+);
+return $config;

0 comments on commit 1959828

Please sign in to comment.