• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter installation on production server

#1
[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


Messages In This Thread
Codeigniter installation on production server - by El Forum - 09-04-2012, 03:31 AM
Codeigniter installation on production server - by El Forum - 09-04-2012, 07:58 AM
Codeigniter installation on production server - by El Forum - 09-05-2012, 04:37 AM
Codeigniter installation on production server - by El Forum - 09-05-2012, 09:16 AM
Codeigniter installation on production server - by El Forum - 09-06-2012, 11:29 PM
Codeigniter installation on production server - by El Forum - 09-07-2012, 07:11 AM
Codeigniter installation on production server - by El Forum - 09-08-2012, 04:21 AM
Codeigniter installation on production server - by El Forum - 09-08-2012, 07:15 AM
Codeigniter installation on production server - by El Forum - 09-08-2012, 07:20 AM
Codeigniter installation on production server - by El Forum - 09-08-2012, 08:10 AM
Codeigniter installation on production server - by El Forum - 09-08-2012, 08:12 AM
Codeigniter installation on production server - by El Forum - 09-08-2012, 08:15 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.