Mnesia: changing hostname

Dan Gudmundsson <>
Wed Sep 14 10:34:09 CEST 2005


Fredrik Thulin writes:
 > Hi
 > 
 > I am at an interop event (SIPit), where I got a new hostname. I had a 
 > database in a Mnesia directory. Mnesia seems to be starting just fine, 
 > but the tables are not accessible. My old hostname is listed as a 
 > stopped db-node in mnesia:info().
 > 
 > This isn't very strange to me, but how can I detect this state of 
 > affairs? Currently my application just fails to start, because the 
 > Mnesia tables are not present.
 > 

If you have a backup, you can use function provided in the mnesia
examples directory, otherwise you'll have to hack the schema.dat file.

/Dan

 > Thanks in advance
 > 
 > /Fredrik




More information about the erlang-questions mailing list