Connect failed to database

Steffen Kaiser
Mon, 02 Mar 2015 07:58:47 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 2 Mar 2015, Oliver Welter wrote:
> Am 02.03.2015 um 06:03 schrieb Dan LaSota:
>> I have dovecot version 2.2.10
>> dovecot -n output below
>>
>> I am seeing connection errors being written to my dovecot error log:
>> Mar  1 19:51:15 mail dovecot: auth-worker(2224): Error:
mysql(localhost):
>> Connect failed to database (servermail): Access denied for user
>> 'usermail'@'localhost' (using password: YES) - waiting
for 5 seconds before
>> retry
>>
>
> Just some quick ideas
> * check if the mysql socket file has rw permissions for the dovecot user
> * Try to run the mysql query as user dovecot (su dovecot)
> * Try to set the local ip instead of localhost (mysql makes a difference in
> the ACL checks if you come from localhost)

(Y) in addition:

* Did mysql logged something useful?

- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVPQYN3z1H7kL/d9rAQLyRwgAlasqa/rDY86UmYHF2+e/Q5++oCC/8n0a
0sCyQdY8SVJA8jsZbL4+B/F9lwkMA+7gSkiSDuLQWM/c7VotBhQ5AvZKOXfEUmCZ
DFH7J2dZMwPjAubcdjjp2lnA97NS4wt3+dqyo4ezCEcc+ZKjDh8QSuPAO8xRP1Dq
pK/47DYi9yyz0dExQlQ1Fx1w792n4igCuPySThT03k+yRZpx4x5Va4/s0TM5ZwLP
JaRZWo8IzzWjFWvCZQDGWCpy1+TWNTN1NUAfN2ngZSxWGq0mpPX9dFerXJdgyBzg
LCYGkufOO1FjlT+bRDqezBf/ps5MJsObeJr/Z816u1JdCS2Uc49CbQ==Z7XP
-----END PGP SIGNATURE-----