This is my database.php (I am using XAMPP and CODEIGNITER). I cannot connect to a SQLSERVER database (it is a mess)
$db['default'] = array(
'dsn' => '',
'hostname' => 'SER054USA',//server_name
'username' => 'admin',
'password' => '45645sfd45',
'database' => 'PROD',
'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
);
I got this error massage:
No connection could be made because the target machine actively refused it
I have tried so many times but i was not able to solve this.
I have searched a lot, seen several threads but no one really helped me.