CodeIgniter Forums
Remote MySQL connection problem. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Remote MySQL connection problem. (/showthread.php?tid=45750)



Remote MySQL connection problem. - El Forum - 10-04-2011

[eluser]netameta1[/eluser]
Well i am trying to create a remote MySQL connections doesn't seemed to work.
i want to be able to know what error problem i am getting. but so far codeigniter write something like:
"Unable to connect to your database server using the provided settings."
Without specific error.

Here is the configuration:
Code:
$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = '97.89.74.45';
$db['default']['username'] = 'xxx';
$db['default']['password'] = 'xxx';
$db['default']['database'] = 'xxx';
$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;
$db['default']['port'] = '3306';