Help - Search - Members - Calendar
Full Version: Using Code Igniter.. Got Db Problem
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
krizzangel
QUOTE
A Database Error Occurred

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


i dont know what to do now.. coz i know i got the correct setting for database config.. i got the error at the beggining.. this is the address : montessori.zxq.net

heres the setting:
QUOTE
$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "myUsername"; <-- cant tell u my UN
$db['default']['password'] = "myPassword"; <-- cant tell u my pwd
$db['default']['database'] = "montessori_zxq_db";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
Jacob
What is your domain? And what is your username you are trying to use?
krizzangel
montessori.zxq.net is my domain.. 96203_gel for UN
Jacob
Do not bump threads unnecessarily. Get some patience and wait for someone to reply.
Ed
Set:

CODE
$db['default']['pconnect'] = TRUE;


To:

CODE
$db['default']['pconnect'] = FALSE;


We don't allow persistent connections, this is more than likely the issue.
krizzangel
oh ok.. lemme try that.. tnx

cool that works.. got another question.. what is that persistent connection?? no idea how it affects my DB/site.. ty again
DroNix
persistent connection is disabled, hence the need to set it to False
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.