authdaemond: failed to connect to mysql server

查看/var/log/maillog,提示以下错误:

“authdaemond: failed to connect to mysql server”

找了好久,原来是 /usr/local/etc/authlib/authmysqlrc中的MSYQLSERVER localhost这一行后面多了空格.

MYSQL_SERVER            localhost

继续测试,又发现/var/log/maillog提示以下错误:

“authdaemond: authmysql: mysql_select_db”

原来又是 /usr/local/etc/authlib/authmysqlrc中的配置要么是没用用Tab键分隔,要么就是好象上面一样多了空格,反正我是重新用tab键分隔并且确认后面没有空格,然后courier-authdaemond restart就可以了!

上一篇:

Comments