#76 Port for mysql(i)-connection can be specified

open
nobody
Database (4)
5
2013-01-23
2009-09-01
Hans Bert
No

This patch should be applied to funtions.inc.php. In addition to the patch a configuration-directive in config.inc.php has to be added: $CONF['database_port'] = '3306'

Discussion

  • Hans Bert

    Hans Bert - 2009-09-01

    Port for mysql(i)-connection can be specified

     
  • GingerDog

    GingerDog - 2009-09-01

    according to php.net/mysql_connect; you can specify the port for a MySQL connection by specifying hostname:port

    e.g. $CONF['database_host'] = '172.30.33.66:3309' ;

    So I'm not sure why your patch is needed - at least for a MySQL database. PostgreSQL seems to handle ports differently.

     
  • Hans Bert

    Hans Bert - 2009-09-01

    I added this, because I'm using mysqli which seems not to accept the notation you mention. and for consistency-reasons this should than be a conf-directive so it works also if you switch to mysql (or postgresql, but you would have to add this for yourself in functionsinc.php, i'm not into postgresql)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks