我刚刚开始使用 ejabberd 服务器来处理 XMPP 内容。
我可以使用默认的 Mnesia 数据库在 VPS 上成功设置它。
现在我正在尝试配置 ejabberd 以使用 mysql 数据库(而不是 Mnesia)。我正在关注 documentation .除了安装 Erlang MySQL 库之外,我已经完成了所有工作。不幸的是,他们在文档中提供的链接已损坏。链接是:https://support.process-one.net/doc/display/CONTRIBS/Yxa .
通过谷歌搜索我可以找到这个github repo声称是 ejabberd 文档中链接的驱动程序的扩展和增强。
我想知道推荐的 ERLANG MYSQL 库是什么(与 EJABBERD 一起工作)。
我找到了 here据说是该库的增强版本。根据网站:
This MySQL driver for Erlang is based on the Yxa driver obtained from
Process One (at
https://support.process-one.net/doc/display/CONTRIBS/Yxa) It includes
several new features such as prepared statements, transactions, binary
queries, type-converted query results, more efficient logging and a
new connection pooling mechanism.
我在我的 ubuntu 实例上安装了 erlang 工具,允许我编译库。