<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Fatal error using localhost MySQL with port number</title> 
  <pubDate>Thu, 09 Apr 2026 17:42:26 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9738</link> 
  <atom:link rel="self" type="application/rss+xml" title="Fatal error using localhost MySQL with port number" href="https://bugs.horde.org/ticket/9738/rss" /> 
  <description>Fatal error using localhost MySQL with port number</description> 
 
   
   
  <item> 
   <title>Localhost with portnumber fatal error:
During configuration</title> 
   <description>Localhost with portnumber fatal error:
During configuration you can enter &#039;localhost&#039; 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 &#039;localhost&#039; 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 &#039;localhost&#039; with the IP address 127.0.0.1 or simply neglects the port value in case of &#039;localhost&#039; or &#039;127.0.0.1&#039; entry.</description> 
   <pubDate>Tue, 29 Mar 2011 08:29:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9738#t62767</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Don&#039;t throw </title> 
   <description>Changes have been made in Git for this ticket:

Don&#039;t throw exception when setting port number while using localhost in PDO MySQL driver (Bug #9738)

 3 files changed, 3 insertions(+), 5 deletions(-)
http://git.horde.org/horde-git/-/commit/064351164191941ac0fc781b74bd752802448e90</description> 
   <pubDate>Tue, 29 Mar 2011 12:54:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9738#t62783</link> 
  </item> 
   
  <item> 
   <title>For now, I&#039;ve removed the exception.

I tend to convert &quot;l</title> 
   <description>For now, I&#039;ve removed the exception.

I tend to convert &quot;localhost&quot; to &quot;127.0.0.1&quot; automatically, because this is probably what most users intended, and the magic behavior of MySQL to use sockets if the host is &quot;localhost&quot; already caused many WTF moments for administrators.
OTOH many admins and developers might already be aware of this behavior and could be using &quot;localhost&quot; intentionally.</description> 
   <pubDate>Tue, 29 Mar 2011 12:57:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9738#t62784</link> 
  </item> 
   
  <item> 
   <title>&gt; I tend to convert &quot;localhost&quot; to &quot;127.0.0.1&quot; automatically</title> 
   <description>&gt; I tend to convert &quot;localhost&quot; to &quot;127.0.0.1&quot; automatically, because 
&gt; this is probably what most users intended, and the magic behavior of 
&gt; MySQL to use sockets if the host is &quot;localhost&quot; already caused many 
&gt; WTF moments for administrators.
&gt; OTOH many admins and developers might already be aware of this 
&gt; behavior and could be using &quot;localhost&quot; intentionally.

Anybody having an opinion on this?</description> 
   <pubDate>Wed, 18 May 2011 16:23:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9738#t64811</link> 
  </item> 
   
  <item> 
   <title>Sounds okay to me.</title> 
   <description>Sounds okay to me.</description> 
   <pubDate>Sat, 21 May 2011 22:02:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9738#t64945</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

[jan] Conver</title> 
   <description>Changes have been made in Git for this ticket:

[jan] Convert host parameter from &quot;localhost&quot; to &quot;127.0.0.1&quot; in MySQL drivers (Request #9738).

 5 files changed, 46 insertions(+), 31 deletions(-)
http://git.horde.org/horde-git/-/commit/05341a899795de7b85ee1ace58ffe4969baa677d</description> 
   <pubDate>Thu, 30 Jun 2011 08:52:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9738#t66017</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
