Welcome Guest, Not a member yet? Register   Sign In
problem connecting to postgres
#1

Hello!

I am trying connect to postgres, but doesn't work. In my database.php I have something like

$db['default']['hostname'] = '192.168.0.207';
$db['default']['username'] = 'postgres';
$db['default']['password'] = 'rontur';
$db['default']['database'] = 'stand';
$db['default']['dbdriver'] = 'postgre';
$db['default']['port'] = '5432';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
.........................................

Now, if I try connect using odbc, it works!,

$db['default']['hostname'] = 'DRIVER={PostgreSQL ANSI};SERVER=192.168.0.207;DATABASE=stand';
$db['default']['username'] = 'postgres';
$db['default']['password'] = 'rontur';
$db['default']['database'] = 'stand';
$db['default']['dbdriver'] = 'odbc';

any idea?

Best Regards
Fernando
Reply


Messages In This Thread
problem connecting to postgres - by newphpprogrammer - 11-18-2014, 04:00 PM
RE: problem connecting to postgres - by bclinton - 11-18-2014, 06:53 PM
RE: problem connecting to postgres - by blagi - 11-19-2014, 01:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB