Welcome Guest, Not a member yet? Register   Sign In
problem with connection to db
#1

[eluser]Krystian[/eluser]
Hi,

my server in some hosting company needs, in order to connect to db, port numer 3307
I cannot establish the connection using such a code, even when I gave hostname sql.operisartis.nazwa.pl:3307
provider, for now, doesn`t helped me.
Do I have to put this port number somewhere else?

Code:
$db['default']['hostname'] = 'sql.operisartis.nazwa.pl';
$db['default']['username'] = 'my-user-name';
$db['default']['password'] = 'my-password';
$db['default']['database'] = 'my-database';
$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_polish_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

best regards




Theme © iAndrew 2016 - Forum software by © MyBB