Tommy
Tommy

Reputation: 1239

ejabberd: inspect Mnesia tables?

I'm digging into ejabberd but I can't find a way to inspect its Mnesia tables.

Is there something like the MySQL shell to inspect tables?

Upvotes: 8

Views: 3641

Answers (2)

Geek
Geek

Reputation: 708

Just go to folder where ejabberd is installed.Then go to bin folder and type command ./ejabberdctl dump_table file_name_in_which_table_will_be_dumped Table_Name.

This file will be created in database/ejabberd@localhost/dump_table file_name_in_which_table_will_be_dumped

Upvotes: 2

tonio
tonio

Reputation: 10541

You may use the Table Visualizer, in module tv.

It can help examine ets tables and mnesia tables. You can simply start it on any connected node (e.g. with "ejabberdctl debug"), with:

 tv:start().

Upvotes: 11

Related Questions