Mnesia database

Hi,

I have some questions about ejabberd. I really appreciate if you could answer them.

-Is all the data (e.g. users, chat rooms) being stored in Mnesia database?

-How to delete all the data in the database remotely, say from another client computer, programatically?

I am writing a jabber client software and running many tests. Before a test is performed, I need to delete all the data in the database. I can do this with jabberd2 e.g. using mysql but jabberd2 doesn't support publish subscribe.

Thank you,

pty1196

removing the database

--- Is all the data (e.g. users, chat rooms) being stored in Mnesia database?

Some data is stored in Mnesia (permanent database, available in RAM while being used and stored in files every some time), other is on ETS (volatile database, only available in RAM) and the remaining is keeped in memory by erlang processess. So, if you stop ejabberd and remove the Mnesia files, you have removed all the information on your server (users, roster, offline messages, pubsub nodes...).

Users and their passwords are on a Mnesia table. Roster items are on another Mnesia table. Permanent chatrooms are on a Mnesia table, but non-permanent are on a ETS table, etc.

--- How to delete all the data in the database remotely, say from another client computer, programatically?

There's the normal way: stop ejabberd, remove the directory where mnesia database files are stored, and start ejabberd :) . You can do this if you have SSH access to the machine. There're more 'advanced' ways, if you can't use this.

how to delete persistent rooms

How do you delete persistent rooms created by mod_muc_admins?

I think it's down through the mnesia database?

If someone can show some syntax that'd be great.

thanks!

-harry

Try mod_muc_admin

The contributed module mod_muc_admin provides ejabberdctl commands to delete rooms. You can find the module in the ejabberd-modules SVN.

Greeting, Please I have some

Greeting,

Please I have some question about eJabberd and Mnesia

1) it is Mnesia or eJabberd who stock pictures ?
2) How customize mnesia DataBase in ejabberd?

thanks

1) it is Mnesia or eJabberd

1) it is Mnesia or eJabberd who stock pictures ?

Which pictures are you talking about ? Vcard avatar ? It depends on the backend you have configured, Mnesia or a relational database.

2) How customize mnesia DataBase in ejabberd?

You need to modify the source code of ejabberd.

Syndicate content