Welcome Guest, Not a member yet? Register   Sign In
database connection using remote settings
#1

[eluser]vickatg[/eluser]
hello everyone

my problem is accessing a remote database with codeigniter, the settings used in the database.php file are correct because with the same settings i can access the database direct via my web browser.
what could be the problem?

current settings file
Code:
$db['default']['hostname'] = 'mysql-m.sourceforge.net';
$db['default']['username'] = 'root';
$db['default']['password'] = 'root';
$db['default']['database'] = 'myproject';
$db['default']['dbdriver'] = 'mysql';
$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;




Theme © iAndrew 2016 - Forum software by © MyBB