What is the best practice to accessing a single running mnesia node from another Erlang shell to only view data in the tables?
I tried opening two shells and pointing them to the same mnesia directory location which I realized was a very bad idea after finding this in the documentation.
-mnesia dir Directory. The name of the directory where all Mnesia data is stored. The name of the directory must be unique for the current node. Two nodes may, under no circumstances, share the same Mnesia directory. The results are totally unpredictable.
I think that easiest way is joining to remote shell. Just start
erlwith-remsh NodeparameterAnother terminal:
Another option is use powerful job control capability of
erl(Press^G)Note that you have to press
Enterto show shell prompt if you are switching back to existing one.