How Elixir can read a remote mnesia node table

I am trying to use Elixir to write a program to access mnesia. I am running the iex shell on amazon linux. I tried to connect another node using

Node.connect(:' hello@abc.com ') 

which return true, then I want to run the mnesia command on this remote node, I issue

  :mneisa.info 

However, it returns only local node information about mnesia. How can I access a connected remote node mnesia database?

I tried rpc_call, it works. But does it have a more direct method of retrieving data from a remote node mnesia.

+6
source share
1 answer

Have you tried:

 Node.spawn :' hello@abc.com ', fn -> :mneisa.info end 
+8
source

Source: https://habr.com/ru/post/985158/


All Articles