[Tickets #9738] Fatal error using localhost MySQL with port number

bugs at horde.org bugs at horde.org
Tue Mar 29 08:29:56 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9738
------------------------------------------------------------------------------
  Ticket             | 9738
  Created By         | a.p.meiners at planet.nl
  Summary            | Fatal error using localhost MySQL with port number
  Queue              | Horde Base
  Version            | 4.0-RC1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


a.p.meiners at planet.nl (2011-03-29 08:29) wrote:

Localhost with portnumber fatal error:
During configuration you can enter 'localhost' as TCP MySQL host. If  
however you do not delete the port number this results in a fatal  
error and Horde4 will not start. If you have deleted the port number,  
saved the config, move to a different tab and change paramaters on  
that tab and again save the config, the default port number is again  
entered in the MySQL host tab and thus again results in a fatal error.

Workaround:
There is a simple workaround which if included in the installation  
documentation can avoid the issue. If instead of 'localhost' you enter  
the IP address 127.0.0.1 as the TCP host, you can leave the port  
number unchanged and all works fine.

Solution:
A more elegant solution would possibly be adding one line of code  
which behind the scenes changes or equates 'localhost' with the IP  
address 127.0.0.1 or simply neglects the port value in case of  
'localhost' or '127.0.0.1' entry.






More information about the bugs mailing list