I've changed dbmysql.c to be a bit more vocal if a connection over a local socket is attempted without setting sqlsocket=..
Also, it will default to port 3306.

Also, the dbmail.conf has some comments on sqlport and sqlsocket

The changes are in CVS

Ilja
On Dec 16, 2003, at 9:57 AM, Paul J Stevens 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

--
  ________________________________________________________________
  Paul Stevens                                         [EMAIL PROTECTED]
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands_______________________________________www.nfg.nl

_______________________________________________
Dbmail mailing list
Dbmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail

--
IC&S
Stadhouderslaan 57
3583 JD Utrecht
telnr. 030-6355730
faxnr. 030-6355731

PGP-key:
http://www.ic-s.nl/keys/ilja.txt

Reply via email to