[eluser]Manish Sunthwal[/eluser]
Hi,
I am using codeigniter framework, and was successful making my own application using this framework on my local machine (localhost). However, after completion of application, now when I upload the same on production server, I am getting below mentioned error.
======================
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: core/Loader.php
Line Number: 346
======================
I have gone through almost all the topics covered in this forum regarding this problem faced by other CI users. However, unable to succeed.
My config.php code is configured as under:
================================================
$active_group = 'default';
$active_record = TRUE;
$db['default']['hostname'] = 'abcd.com'; (here i have also tried 127.0.0.1, localhost )
$db['default']['username'] = 'visi5605_dm';
$db['default']['password'] = 'xxxxxx';
$db['default']['database'] = 'visi5605_ed';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = FALSE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
===============================================
Would really appreciate if someone could assist me out with the same.
Thanks & Regards,
Manish Sunthwal