创建mnesia数据库的步骤简述: 1)定义脚本: -module(mns). -export([setup/0, clean/0]). -record(user, { id, coin, diamond, strength, heros }). setup() -> mnesia:create_table(user, [{attributes, record_info(fields, user)}, {disc_copies, [node()]}]), mnesia:create_table(…