Patches item #2848439, was opened at 2009-09-01 15:45
Message generated for change (Comment added) made by someone20
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2848439&group_id=191583
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Database
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Hans Bert (someone20)
Assigned to: Nobody/Anonymous (nobody)
Summary: Port for mysql(i)-connection can be specified
Initial Comment:
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'
----------------------------------------------------------------------
Comment By: Hans Bert (someone20)
Date: 2009-09-01 16:33
Message:
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)
----------------------------------------------------------------------
Comment By: GingerDog (gingerdog)
Date: 2009-09-01 15:53
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2848439&group_id=191583
|