Codeigniter - Using Multiple Databases

后端 未结 6 707
甜味超标
甜味超标 2020-11-29 04:01

database.php:

$db[\'default\'][\'hostname\'] = \"192.168.2.104\";
$db[\'default\'][\'username\'] = \"webuser\";
$db[\'default\'][\'password\         


        
6条回答
  •  -上瘾入骨i
    2020-11-29 04:42

    currently, codeigniter cannot connect to multiple database in persisten connection. so, you should turn of the persisten of your connections. you may can do this..

    $db['default']['pconnect'] = FALSE;
    
    $db['stats']['pconnect'] = FALSE;
    

提交回复
热议问题