我有debian 7.8和使用postfix,mysql与roundcube和pure-ftpd-mysql。 从2014年开始,所有与MySQL Ver.14.14 Distrib 5.5.40完美兼容。
我尝试将MySQL更新到5.7以便在海量数据库上使用新的全索引searchmysqlfunction,但是我失败了。
更新MySQL服务器到5.7 phpmyadmin工作很好,但我不得不补充:
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
在conf中为了去除默认值的错误。 我的备份和表升级成功,我所有的网站工作正常。
但是我有postfix和pureftpd的大量问题。
即使所有的pureftpd的dabatase在那里工作,也可以连接到ftp。 我检查所有的conf一切似乎很好。
我可以成功连接到roundcube,看到我的旧电子邮件,但我不能再发送或接收电子邮件。 我在我的日志中收到这个错误:
postfix/cleanup[27758]: warning: mysql:/etc/postfix/mysql_virtual_alias_maps.cf is unavailable. unsupported dictionary type: mysql
我尝试了许多事情,但没有任何工作我最终使用我的完整备份,并恢复整个系统。 现在一切恢复正常100%完美,但5.5 MySQL的。
也许我在这个过程中做了错事。 我做了什么 :
整个备份我的系统和SQL数据库和conf
apt-get remove mysql-server mysql-client mysql-common apt-get autoremove apt-get autoclean apt-get install libaio1 dpkg -i mysql-apt-config_0.8.3-1_all.deb apt-get update apt-get intall mysql-server service mysql start
恢复mysql数据库和升级表
谢谢您的帮助!
检查postconf -m的输出,看是否列出mysql。 如果没有,那么使用:
sudo apt-get install postfix-mysql
这将添加到后缀的MySQL支持。