Mnesia: changing hostname
Wed Sep 14 11:06:36 CEST 2005
On Wed, 14 Sep 2005, Dan Gudmundsson wrote:
DG> Fredrik Thulin writes:
DG> > Hi
DG> > I am at an interop event (SIPit), where I got a new hostname. I had a
DG> > database in a Mnesia directory. Mnesia seems to be starting just fine,
DG> > but the tables are not accessible. My old hostname is listed as a
DG> > stopped db-node in mnesia:info().
DG> > This isn't very strange to me, but how can I detect this state of
DG> > affairs? Currently my application just fails to start, because the
DG> > Mnesia tables are not present.
DG> If you have a backup, you can use function provided in the mnesia
DG> examples directory, otherwise you'll have to hack the schema.dat file.
If you are allowed to admin your host, you could add a
temporary host alias and start the node with an
explicit hostname like this: erl -s mynode@REDACTED
More information about the erlang-questions