Connect failed to database

Dan LaSota dlasota at alaska.edu
Mon Mar 2 18:53:26 UTC 2015


>> 
>> still doesn't work:
>> Mar  2 04:58:48 mail dovecot: auth-worker(5745): Error: mysql(127.0.0.1): Connect failed to database (servermail): Access denied for user 'usermail'@'localhost' (using password: YES) - waiting for 1 seconds before retry
> 
> that is a pretty clear message
> 
> the username / password / host is wrong, fix your mysql permissions and keep in mind that localhost != 127.0.0.1 in that context

which is the preferred address: localhost or 127.0.0.1 ?


> 
> the user with that password from that host is not allowed - period

Then why can I use the same credentials to log into mysql from the command line? Like so:

# mysql -u mailuser -h localhost -p

Dan LaSota
Instructional Designer, UAF eLearning
(907) 451-4067
dan.lasota at alaska.edu
http://elearning.uaf.edu



More information about the dovecot mailing list