[erlang-questions] Can't create schema in Mnesia

Yves S. Garret <>
Sun Jan 19 03:25:02 CET 2014

Hello all,

I have the following code:

When I compile and reload the records, this is what happens:

14> c(mnesia).
15> rr("records.hrl").
16> mnesia:setup().
** exception error: undefined function mnesia:create_schema/1
     in function  mnesia:setup/0 (mnesia.erl, line 25)

The function _does_ exist in the mnesia module.  I checked the docs and I'm
running 16B03, so it's there.  But why this error?

Also, I have an another question.  Lets say I'm testing some code and I
comment out where I'm calling a function (located in the same file.)  How
can I tell the compiler to not worry about this file not being called?  I
know I can for variables such as _Variable, but methods?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140118/011b1ffb/attachment.html>

More information about the erlang-questions mailing list