[Dovecot] Failed authentication to a mysql database (bug or PEBKAC?)

Timo Sirainen tss at iki.fi
Tue Aug 16 12:10:07 EEST 2005


On 16.8.2005, at 09:03, Michael Gabb wrote:

>>> Hmm. Maybe it's not user/password itself, but the database that 
>>> you're
>>> connecting to isn't right?
>>
>> No, everythings fine. Nevertheless I'm going through it tomorrow one
>> more time to be sure.
>>
> Every parameter of the connect string ist verified by me one more time.
> No problems here.

I see actually one difference between 0.99.x code and 1.0-test code. 
Does this help?

diff -u -r1.9 driver-mysql.c
--- src/lib-sql/driver-mysql.c  9 Jun 2005 18:44:22 -0000       1.9
+++ src/lib-sql/driver-mysql.c  16 Aug 2005 09:08:19 -0000
@@ -82,7 +82,7 @@

         if (*conn->host == '/') {
                 unix_socket = conn->host;
-               host = NULL;
+               host = "localhost";
         } else {
                 unix_socket = NULL;
                 host = conn->host;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20050816/cae5e22d/PGP.pgp


More information about the dovecot mailing list