我在codeigniter中有登录页但是它不能与postresql一起使用?
这是我的数据库配置:
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'port' => '5433',
'username' => 'postgres',
'password' => '12345',
'database' => 'arahenvi',
'dbdriver' => 'postgre',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array()
);
答案 0 :(得分:0)
尝试提供dsn
字符串
$db['default'] = array(
'dsn' => 'pgsql:host=localhost;port=5433;dbname=arahenvi',
...