CodeIgniter Forums
Random database error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Random database error (/showthread.php?tid=18419)



Random database error - El Forum - 05-06-2009

[eluser]Juicie[/eluser]
I'm developing a new site for the company i'm working for. Everything is nearly finished but i'm getting a random database error. 9 out of 10 times everything works great but then I get an error.

Quote:A Database Error Occurred

Unable to connect to your database server using the provided settings.

I'm using MSSQL 2005 with the following CI settings:

Code:
$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "---\---";
$db['default']['username'] = "---";
$db['default']['password'] = "---";
$db['default']['database'] = "catalogus";
$db['default']['dbdriver'] = "mssql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";

Could it be a solution to use the ADODB library. Thnx.


Random database error - El Forum - 05-06-2009

[eluser]Thorpe Obazee[/eluser]
have you tested it on your localhost or somewhere else? if yes, does it occur there too?


Random database error - El Forum - 05-06-2009

[eluser]Juicie[/eluser]
[quote author="bargainph" date="1241613806"]have you tested it on your localhost or somewhere else? if yes, does it occur there too?[/quote]

I've tried it at localhost, from same network and from a remote computer. Getting the error everywhere.


Random database error - El Forum - 05-07-2009

[eluser]Juicie[/eluser]
Problem solved thnx to this topic: http://ellislab.com/forums/viewthread/86023/P0/