mysql port change [message #28040] |
Fri, 07 October 2005 19:31 |
sjcomp
Messages: 12 Registered: June 2005
Karma: 0
|
Junior Member |
|
|
Hi everyone,
I am using fudforum within egroupware and everything is working fine, but if I change mysql port, fudforum stops showing messages. I wonder where is the dependency on the mysql port value? Egroupware works fine with a different port.
Thanks a lot.
Regards, Alexander.
|
|
|
|
|
|
|
|
|
|
Re: mysql port change [message #28115 is a reply to message #28109] |
Tue, 11 October 2005 16:11 |
sjcomp
Messages: 12 Registered: June 2005
Karma: 0
|
Junior Member |
|
|
I found function fud_egw($t='index', $plain=0), which has the following lines:
switch ($server['db_type']) {
case 'mysql':
$func = $server['db_persistent'] ? 'mysql_pconnect' : 'mysql_connect';
define('fud_sql_lnk',$func($db->Host, $db->User, $db->Password));
mysql_select_db($db->Database,fud_sql_lnk);
break;
So I changed line
define('fud_sql_lnk',$func($db->Host, $db->User, $db->Password));
to
define('fud_sql_lnk',$func('loclalhost:XXX', $db->User, $db->Password));
And it worked. I have mulitple files which had this line under fudforum directory in egroupware and under files directory outside the webroot, so I changed all of them
Thanks a lot for your help. It is a quick fix, but it worked.
Regards, Alexander.
|
|
|