主题: Iredmail连接不上数据库问题
首先说明下我的环境:
我是从A服务器迁移到B服务器。两台都是cent os 5.4的操作系统,都运行LAMP+iredmail
1.在数据库停止运行的情况下,我把A服务器的vmail数据库复制并替换B服务器的vmail,启动mysql,iredmail可以正常访问,工作正常
2.因为B服务器一样要运行A服务器的LAMP环境,所以必须把/var/lib/mysql/mysl这个数据库也替换到B服务器,当访问123.456.789.123/mail时,提示DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator
但可以正常访问并操作123.456.789.123/postfixadmin
maillog日志如下:
warning: problem talking to service rewrite: Success
Feb 27 02:00:13 c6 postfix/master[2671]: warning: process /usr/libexec/postfix/trivial-rewrite pid 16466 exit status 1
Feb 27 02:00:13 c6 postfix/smtpd[3289]: warning: problem talking to service rewrite: Success
Feb 27 02:00:13 c6 postfix/master[2671]: warning: process /usr/libexec/postfix/trivial-rewrite pid 16467 exit status 1
Feb 27 02:00:13 c6 postfix/smtpd[4300]: warning: problem talking to service rewrite: Success
Feb 27 02:00:13 c6 postfix/smtpd[4399]: warning: problem talking to service rewrite: Success
Feb 27 02:00:13 c6 postfix/master[2671]: warning: process /usr/libexec/postfix/trivial-rewrite pid 16468 exit status 1
Feb 27 02:00:13 c6 postfix/smtpd[4496]: warning: problem talking to service rewrite: Success
Feb 27 02:00:13 c6 postfix/master[2671]: warning: process /usr/libexec/postfix/trivial-rewrite pid 16469 exit status
mysqld.log日志如下:
mysqld started
100226 23:41:44 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
100226 23:41:44 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
100226 23:41:45 InnoDB: Started; log sequence number 0 105029
100226 23:41:45 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.77' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
帮忙分析下,谢谢