gpt4 book ai didi

mysql - 无法将 Mysql 与 Ejabberd 连接 - 无法启动应用程序 'p1_mysql'

转载 作者:行者123 更新时间:2023-12-01 10:32:23 27 4
gpt4 key购买 nike

我最近开始在 ejabberd 上工作,在连接 mysql 时遇到了问题。

我在 Ubuntu 上使用命令行安装了 ejabberd - sudo apt-get install ejabberd我引用了以下设置 ejabberd 的教程 - Install ejabberd on Ubuntu

现在,为了连接到 Mysql,我在 ejabberd.yml 中做了以下更改 -

auth_method: odbc
odbc_type: mysql
odbc_server: "localhost"
odbc_database: "ejabberd"
odbc_username: "ejabberd"
odbc_password: "password"
##
## If you want to specify the port:
odbc_port: 3306

但是在重新启动服务时,我收到此错误
[critical] <0.38.0>@ejabberd:exit_or_halt:133 failed to start application 'p1_mysql': {error,
{"no such file or directory",
"p1_mysql.app"}}

我看到了一些提到使用 ./configure --enable-odbc --enable-mysql 的链接。来解决这个问题(当你通过编译源代码安装 ejabberd 时有效),但由于我没有编译源代码来安装 ejabberd(就像我上面提到的),我无法做到这一点。我该如何解决这个问题。提前致谢。

最佳答案

要在 Ubuntu 中将 ejabberd 与 Mysql 一起使用,您需要安装 erlang-p1-mysql 包:

sudo apt install erlang-p1-mysql

我有同样的问题,并解决了它。

关于mysql - 无法将 Mysql 与 Ejabberd 连接 - 无法启动应用程序 'p1_mysql',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41310735/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com