From 46d010e89d280d391935648f1f713fc784042050 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 19 Jan 2009 03:31:13 +0000 Subject: Simplification pass over the installer: - Flattened the directory structure - Greatly simplified structure in installer; it now only reports environmental checks that fail. Simplified code that prints exceptions. Use only mysql calls for the installer, but select mysqli automatically if it's available. Drop the response file; that's easily replicated with flag support - Create a random password for the admin user - Delete unused controllers - Invert the form of the database config template to be mostly non-PHP with just a few PHP calls --- installer/database_config.php | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 installer/database_config.php (limited to 'installer/database_config.php') diff --git a/installer/database_config.php b/installer/database_config.php new file mode 100644 index 00000000..78492eba --- /dev/null +++ b/installer/database_config.php @@ -0,0 +1,45 @@ + + defined('SYSPATH') OR die('No direct access allowed.'); + +/** + * @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" => "", + "user" => "", + "pass" => "", + "host" => "", + "port" => false, + "socket" => false, + "database" => "" + ), + "character_set" => "utf8", + "table_prefix" => "", + "object" => true, + "cache" => false, + "escape" => true +); \ No newline at end of file -- cgit v1.2.3