最近我开始使用ejabberd,但在连接mysql时遇到了问题。
我使用Ubuntu命令行安装了ejabberd - sudo apt-get install ejabberd
,并参考了以下教程来设置ejabberd - 在Ubuntu上安装ejabberd
现在,为了连接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(就像我上面提到的那样),所以我无法这样做。我该如何解决这个问题?提前致谢。