Can't Connect Database By Using Codeigniter Framework ? |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Zymic Free Web Hosting Databases & MySQL |
||
![]() |
Can't Connect Database By Using Codeigniter Framework ? |
||
Apr 17 2012, 12:16 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 17-April 12 Member No.: 238,300 |
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; |
|
|
Apr 17 2012, 03:13 PM
Post
#2
|
|
|
THE SILENT FORUM NINJA ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrators Posts: 3,709 Joined: 23-January 10 From: on your screen Member No.: 127,507 |
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
|
|
|
Apr 18 2012, 03:19 PM
Post
#3
|
|
|
THE SILENT FORUM NINJA ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrators Posts: 3,709 Joined: 23-January 10 From: on your screen Member No.: 127,507 |
read what i put in the post above to see what to do
|
|
|
Jun 9 2012, 05:57 AM
Post
#4
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 3-April 12 Member No.: 236,685 |
you have two $db['default']['db_debug'];
you should only have. $db['default']['db_debug'] = false; |
|
|
![]() |
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 24th May 2013 - 11:01 AM |