Welcome Guest, Not a member yet? Register   Sign In
where to set the port for database connection
#1

[eluser]runrun[/eluser]
what if I want to do something like this ?

Code:
$link = mysql_connect('155.34.14.0:3307', 'mysql_user', 'mysql_password');

you can there is port 3307 trailing the IP, the database config file has no such option. So what should I do to customize port in the database class ?
#2

[eluser]danmontgomery[/eluser]
Code:
$db['default']['hostname'] = '155.34.14.0:3307';




Theme © iAndrew 2016 - Forum software by © MyBB