Ticket #550: databaseconfig.php.diff

File databaseconfig.php.diff, 1.3 kB (added by JAAulde, 9 months ago)

Config file changes

  • database.php

     
    1212 * Group Options: 
    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 
    1822 *  object        - Enable or disable object results 
     
    2327( 
    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'  => '', 
    2942        'object'        => TRUE,