Help - Search - Members - Calendar
Full Version: Can't Connect Database By Using Codeigniter Framework ?
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
i3oomiiz
My website is using CodeIgniter Framework but it show error:

A Database Error Occurred

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

Filename: core/Loader.php

Line Number: 346



What is this problem ?

my database config:

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = '705008_i3oomiiz';
$db['default']['password'] = 'xxxxxx';
$db['default']['database'] = 'i3oomiiz_99k_onlineshopping';
$db['default']['dbdriver'] = 'mysql';
$db['default']['db_debug'] = false;
$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';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
ssfdre38
put $db['default']['pconnect'] = TRUE; to $db['default']['pconnect'] = false; cause we disable mysql_pconnect() so you need to use mysql_connect() and you will be able to use it just fine
ssfdre38
read what i put in the post above to see what to do
Drimcaster
you have two $db['default']['db_debug'];


you should only have.


$db['default']['db_debug'] = 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-2013 Invision Power Services, Inc.