Using following method I have tried to create a table,
mnesia_init() ->
mnesia:create_schema([node()]),
case mnesia:start() of
ok ->
try
mnesia:table_info(type, bill_cdr_file_counter)
catch
exit:_ ->
mnesia:create_table(bill_cdr_file_counter,[{attributes,[key,value]},
{disc_copies,[node()]}])
end;
{error, Reason} ->
error_logger:error_report(["Mnesia start error: ", Reason]),
{error, Reason}
end.
the record I have used is the following,
-record(bill_cdr_file_counter, {key,value}).
but as response I'm getting this,
{aborted,{bad_type,bill_cdr_file_counter,{disc_copies,log@mbsmsc1}}}