Same Mnesia database from different Unix processes (was also: Bonjour + Mnesia)

Ulf Wiger ulf@REDACTED
Wed Jul 13 23:39:36 CEST 2005


Den 2005-07-13 22:59:52 skrev Jérôme Desquilbet <jerome@REDACTED>:

> Thanks a lot Ulf. I didn't manage to make it work on the command line,  
> but in the shell, yes, like this:
>
> $ erl -sname newnode
>  > .mnesia:start().
>  > .mnesia:change_config(extra_db_nodes, ['othernode']).
>  > .tv:start().
>  > .mnesia:stop().
>  > .init:stop().
> $
>
> And yes, it is explained in the reference manual ;-)
>    Jérôme.

You can also put it in a sys.config file, e.g.

in the sys.config:
------------------
[{mnesia, [
            {extra_db_nodes, [...]}
           ]}
].


Then: erl -sys ..../sys


/Uffe




More information about the erlang-questions mailing list