How to uninstall odbc for Ejabberd?

…衆ロ難τιáo~ 提交于 2019-12-10 11:52:19

问题


I have installed Ejabberd with odbc_mysql before, but I want to use mnesia now, so I removed odbc by:

{auth_method, internal}.
%% {auth_method, odbc}.

But when I close mysql service, and restart ejabberd , I found that there are connection error:

E(<0.333.0>:ejabberd_odbc:542) : mysql_conn: post_start error connect_failed

So how to removed odbc ?


回答1:


I suspect the problem might be due to the fact ejabberd's configuration file is used to bootstrap the "real" configuration storage which uses internal Mnesia tables (no matter whether you're using ODBC or not), and you might need to override them using special configuration file directive like override_global., and/or override_local. -- refer to the section "3.1 Basic Configuration" of the manual.




回答2:


I am not entirely sure about this but I think you will need to comment out the odbc_server config too i.e. the line where you have provided the server credentials,

{odbc_server, {mysql, "server", "database", "username", "password"}}.

Also make sure that there are no other modules using odbc eg. mod_roster_odbc or mod_archive_odbc in case you were using them initially.



来源:https://stackoverflow.com/questions/17984947/how-to-uninstall-odbc-for-ejabberd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!