Welcome Guest, Not a member yet? Register   Sign In
Can't connect to mysql remote server
#1

[eluser]Unknown[/eluser]
I can't connect to mysql remote server.

My config/database.php file:

$active_group = 'localhost';
$active_record = TRUE;


$db['localhost']['hostname'] = '192.168.100.137';
$db['localhost']['username'] = 'prueba';
$db['localhost']['password'] = 'prueba';
$db['localhost']['database'] = 'prueba';
$db['localhost']['dbdriver'] = 'mysql';
$db['localhost']['dbprefix'] = '';
$db['localhost']['pconnect'] = TRUE;
$db['localhost']['db_debug'] = FALSE;
$db['localhost']['cache_on'] = FALSE;
$db['localhost']['cachedir'] = '';
$db['localhost']['char_set'] = 'utf8';
$db['localhost']['dbcollat'] = 'utf8_general_ci';
$db['localhost']['swap_pre'] = '';
$db['localhost']['autoinit'] = TRUE;
$db['localhost']['stricton'] = FALSE;

I put 'db_debug' variable to FALSE because I was an error. My mysql server is in IP 192.168.100.137. I can access by command line perfectly. The same database at localhost connect perfectly.

What's the problem?




Theme © iAndrew 2016 - Forum software by © MyBB