Welcome Guest, Not a member yet? Register   Sign In
Codeigniter - Unable to connect to your database server using the provided settings.
#1

[eluser]vishpatel1990[/eluser]
Hello Everyone, I have average knowledge of Codeigniter and just started with TankAuth. I had started integrating Codeigniter with TankAuth on Xindows XP using WAMP server. My database.php has following code:
Code:
$active_group = 'default';
$active_record = TRUE;
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = 'root123';
$db['default']['database'] = 'project';
$db['default']['dbdriver'] = 'mysql';
$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';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

My default controller is 'auth.php' i.e. TankAuth controller. and in its construct, I have initialized database library. I have created database named 'project'. Still, I am getting an error like this:

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

Filename: C:\wamp\www\project\system\database\DB_driver.php

Line Number: 124
I am stuck because of it since two days and unable to find its solution, can anyone tell me what should I do to make it work?
Thanks in advance....


Messages In This Thread
Codeigniter - Unable to connect to your database server using the provided settings. - by El Forum - 03-22-2013, 09:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB