Welcome Guest, Not a member yet? Register   Sign In
Getting Database Error
#1

[eluser]Klaurus[/eluser]
Hello! Im trying to connect to postgreSQL database, but im getting "Unable to connect to your database server using the provided settings." and i dont know why =(
I've checked settings in database.php and seems to be all good. Here's the code:

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

$db['default']['hostname'] = 'localhost';
$db['default']['port'] = '5433';
$db['default']['username'] = 'postgres';
$db['default']['password'] = 'postgres';
$db['default']['database'] = 'laferia';
$db['default']['dbdriver'] = 'postgre';
$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'] = 'es_ES.UTF-8';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

I'm working on Windows 7 with CI 2.0, WAPPStack (with the pdo_pgsql and pgsql drivers enabled), postgres is in port 5433 and there's no httaccess file. Any help? This is driving me crazy!

Sorry if the text has errors, i dont speak English very well.




Theme © iAndrew 2016 - Forum software by © MyBB