Paul,

It worked for me, thanks!

Tuesday, December 16, 2003, 10:57:38 AM, you wrote:

> No. You have to specify two new parameters in dbmail.conf

> sqlport=3306
> sqlsocket=/var/run/mysqld/mysqld.sock

> If you specify host=localhost, sqlsocket IS required since 
> mysql_real_connect will connect to the unix socket instead of a tcp 
> socket. Otherwise, if host=someotherhost sqlport is required. Probably,
> sqlport should default to 3306 for mysql builds, but I dont believe it
> does so at present.

> Checkout the mysql C-API docs for more authorative information.


> Alexander Prohorenko wrote:
>> Christian,
>> 
>> I've alread set host in my /etc/dbmail.conf:
>> 
>> host=localhost
>> 
>> Do you think that the idea is to use IP numbers ?
>> 
>> Monday, December 15, 2003, 9:55:56 PM, you wrote:
>> 
>> 
>>>On Mon, Dec 15, 2003 at 12:51:43PM +0200, Alexander Prohorenko wrote:
>>>
>>>>Hi.
>>>>
>>>>Normally,  I'm running the dbmail-1.2.1 and it works just fine for me.
>>>>However,  I've  decided to upgrade to the latest dbmail-2, as far as I
>>>>don't  like  to  functionality  in  working  with  the  IMAP  dirs  in
>>>>dbmail-1.   I've  heard  that it has been pretty improved in dbmail-2.
>>>>However,  after  building everything and getting it up, no function of
>>>>it was able to connect to MySQL.
>>>>
>>>>It shows the following:
>>>>dbmysql.c,db_connect: mysql_real_connect failed: Can't connect
>>>>to local MySQL server through socket '' (2)
>> 
>> 
>>>I'm not sure what the real fix is, but you can connect over tcp by
>>>setting the host to 127.0.0.1 as a workaround.
>> 
>>  
>> 
>>>xn
>>>_______________________________________________
>>>Dbmail mailing list
>>>Dbmail@dbmail.org
>>>https://mailman.fastxs.nl/mailman/listinfo/dbmail
>> 
>> 
>> 



-- 
Prohorenko

Reply via email to