I want to access the ejabberd server’s Mnesia database, but I don’t know how to read, write and update data. Is there a way I can do this. Can I change the database to MySQL and not to Mnesia. I tried this
{odbc_server, {mysql, "localhost", "xmpp_db", "root", "**********"}}.
Here, "xmpp_db" is the name of my database that was created for ejabberd, but I do not see any changes to xmpp_db. Should I create any tables in "xmpp_db", but the problem is what are the names of my tables and fields. I also used
ejabberdctl dump /tmp/ejabberd.db.txt
but it’s easy to read data (data is in a very rough format and hard to understand). Is there a way by which I can perform read, write, and update operations in the Mnesia database.
Your help will be greatly appreciated.
source
share