• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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';


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.