title: Access distributed mnesia database from different nodes
body: <p>I have a mnesia database containning different tables.</p>
  
  <p>I want to be able to access the tables from different Linux terminals.</p>
  
  <p>I have a function called <code>add_record</code>, which takes a few parameters, say <code>name</code> and <code>id</code>. I want to be able to call <code>add_record</code> on <code>node1</code> and <code>add record</code> on <code>node2</code> but I want to be updating the same table from different locations.</p>
  
  <p>I read a few sources and the only thing i found out was that i should use <a href="http://erlang.org/doc/man/net_adm.html#ping-1" rel="nofollow"><code>net_adm:ping</code></a> (node2). but somehow I cant access the data from the table.</p>