- A+
所属分类:Error
ftp提示:530 Login authentication failed 错误,大概意思是用户认证失败,查看了下日志,内容如下:
0 1 2 3 4 5 6 |
May 4 22:00:27 hz pure-ftpd: (?@115.x.x.x) [INFO] New connection from 115.x.x.x May 4 22:00:27 hz pure-ftpd: (?@115.x.x.x) [ERROR] The SQL server seems to be down [Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)] May 4 22:00:31 hz pure-ftpd: (?@115.x.x.x) [WARNING] Authentication failed for user [admin] May 4 22:00:31 hz pure-ftpd: (?@115.x.x.x) [INFO] Logout. May 4 22:00:41 hz pure-ftpd: (?@115.x.x.x) [INFO] New connection from 115.x.x.x May 4 22:00:41 hz pure-ftpd: (?@115.x.x.x) [ERROR] The SQL server seems to be down [Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)] May 4 22:00:46 hz pure-ftpd: (?@115.x.x.x) [WARNING] Authentication failed for user [admin] |
错误日志很明显了,由于/tmp/mysql.sock的问题,逐步排除如下:
①:pureftpd-mysql.conf中MYSQLSocket配置是否正确。
②:/etc/my.cnf中socket的位置是否与MYSQLSocket完全一致。
③:不排除其他因素导致的问题。