1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php defined('SYSPATH') OR die('No direct access allowed.');
- return array
- (
- '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?
- * array variables system variables as "key => value" pairs
- *
- * Ports and sockets may be appended to the hostname.
- */
- 'hostname' => 'localhost',
- 'database' => 'kohana',
- 'username' => FALSE,
- 'password' => FALSE,
- 'persistent' => FALSE,
- ),
- 'table_prefix' => '',
- 'charset' => 'utf8',
- 'caching' => FALSE,
- ),
- 'alternate' => array(
- 'type' => 'PDO',
- 'connection' => array(
- /**
- * The following options are available for PDO:
- *
- * string dsn Data Source Name
- * string username database username
- * string password database password
- * boolean persistent use persistent connections?
- */
- 'dsn' => 'mysql:host=localhost;dbname=kohana',
- 'username' => 'root',
- 'password' => 'r00tdb',
- 'persistent' => FALSE,
- ),
- /**
- * The following extra options are available for PDO:
- *
- * string identifier set the escaping identifier
- */
- 'table_prefix' => '',
- 'charset' => 'utf8',
- 'caching' => FALSE,
- ),
- );
|