CodeIgniter Forums
Migration to new hosting with postgreDB - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Migration to new hosting with postgreDB (/showthread.php?tid=70079)



Migration to new hosting with postgreDB - sivaki - 02-16-2018

Hi,

I'm looking for help with migration of my website where I using codeigniter. I migrated website to another hosting and on the new hosting is postgreDB.

Everything was ok with migration, but after web running on new hosting with postgreDB I tryed to login to administration in web application and there was the issue. 

I'm not able to  login into my administration. Access data and request are ok, but I getting back bad response (incorrect credential).
I'm currently using version 3.0.6 codeigniter.

This is my setup of DB in config/database.php

Code:
$active_group = 'default';
$query_builder = TRUE;

$db['default'] = array(
    'dsn'    => '',
    'hostname' => 'xxx',
    'username' => 'xxxx',
    'password' => 'xxxx',
    'database' => 'xxx',
    'dbdriver' => 'postgre',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => (ENVIRONMENT !== 'production'),
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt' => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE
);


Can you please help me anyone?

Thank you,

Ivan