CodeIgniter Forums
having trouble opening maridDB - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: having trouble opening maridDB (/showthread.php?tid=74705)



having trouble opening maridDB - richb201 - 10-27-2019

This is the error I get due to line 79. 

A PHP Error was encountered
Severity: Compile Error
Message: Cannot use temporary expression in write context
Filename: config/database.php
Line Number: 79


what does this mean? This is line 79
$active_group = 'default';
$query_builder = TRUE;
$active_record=TRUE;
//Linux server?

db['default'] = array(      <<<<<<<<<this is line 79 in database.php
    'dsn' => '',
    'hostname' => 'docker-substantiator_mariadb_1',
    'username' => 'root',
    'password' => 'root',   
    'database' => 'substantiator',
    'dbdriver' => 'mysqli',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => (ENVIRONMENT !== 'production'),
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt' => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE
);



RE: having trouble opening maridDB - donpwinston - 10-27-2019

db['default'] should be $db['default']