Changeset 2525

Show
Ignore:
Timestamp:
04/17/2008 03:10:19 PM (6 months ago)
Author:
JAAulde
Message:

default config group now uses array

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/config/database.php

    r2194 r2525  
    1313 *  benchmark     - Enable or disable database benchmarking 
    1414 *  persistent    - Enable or disable a persistent connection 
    15  *  connection    - DSN identifier: driver://user:password@server/database 
     15 *  connection    - Array of connection specific parameters; alternatively, 
     16 *                  you can use a DSN though it is not as fast and certain 
     17 *                  characters could create problems (like an '@' character 
     18 *                  in a password): 
     19 *                  'connection'    => 'mysql://dbuser:secret@localhost/kohana' 
    1620 *  character_set - Database character set 
    1721 *  table_prefix  - Database table prefix 
     
    2428        'benchmark'     => TRUE, 
    2529        'persistent'    => FALSE, 
    26         'connection'    => 'mysql://dbuser:secret@localhost/kohana', 
     30        'connection'    => array 
     31        ( 
     32                'type'     => 'mysql', 
     33                'user'     => 'dbuser', 
     34                'pass'     => 'p@ssw0rd', 
     35                'host'     => 'localhost', 
     36                'port'     => FALSE, 
     37                'socket'   => FALSE, 
     38                'database' => 'kohana' 
     39        ), 
    2740        'character_set' => 'utf8', 
    2841        'table_prefix'  => '',