$db['default'] = array(
'dsn' => '',
'hostname' => 'IP',
'username' => 'xxxxxxx',
'password' => 'xxxxxxx',
'database' => 'xxxxxxx',
'dbdriver' => 'sqlsrv',
'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' => FALSE
);
Unable to connect to your database server using the provided settings.
Filename: C:/xampp/htdocs/project/system/database/DB_driver.php
Line Number: 436
在我的项目中,我具有上面的数据库配置和URL以访问该项目。 访问项目时出现数据库连接错误,但是使用Microsoft SQL Management Studio使用相同的凭据访问数据库时我没有问题。
正确的连接设置是什么?