Hello,
I am trying to create Mnesia database table from RabbitMQ plugin.
By default, Mnesia schema and table has been created inside "\Users\AppData\Roaming\RabbitMQ\db\rabbit@xxx-mnesia" .
I have used below code to create schema and table inside plugin.
init() ->
mnesia:create_schema([node()]),
mnesia:start(),
mnesia:create_table(mytable,
[ {disc_copies, [node()] },
{attributes,
record_info(fields,mytable)}
]).
I have couple of question
1) How can I change Mnesia database directory for this plugin only?
I have tried with "application:set_env(mnesia, dir, "D:/MnesiaDB")" before creating schema but didn't get success.
2) Also How can I view my tables using erlan command from "\Users\AppData\Roaming\RabbitMQ\db\rabbit@xxx-mnesia" . ?
I have tried with following
erl.exe -mnesia dir "Users/AppData/Roaming/RabbitMQ/db/rabbit@xxx-mnesia
mnesia:start().
tv:start().
Here i can view all tables but all tables have 0 table size.(I have already interested records successfully inside table).
Regards,
Urmik