Re: [Exim] Odd problem with SQL and reconnecting.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: William Thompson
CC: exim-users
Sujet: Re: [Exim] Odd problem with SQL and reconnecting.
On Wed, 7 May 2003, William Thompson wrote:

> 3935 MYSQL new connection: host=cd port=3306 socket=NULL database=NULL user=exim
> 3935 MYSQL connection failed: Unknown MySQL Server Host 'cd' (4)

                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This bit of the error message is generated by a call to mysql_error(),
so it is MySQL that is generating this text. All Exim has done is to
call mysql_real_connect() and print the error when it failed.


> It appears that on 2nd connections, exim or the mysql lookup is not using
> the DNS to get the IP address.


Exim passes the server name to MySQL. It appears to be doing that
correctly. You'll have to dig in MySQL to see what that error message
actually means.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.