mnesia schema management

Q: 加入一个新节点到Mnesia System

 

> mnesia:start().

> mnesia:change_config(extra_db_nodes, [some_existing_node]).               %% disk-less node now

> mnesia:change_table_copy_type(schema, node(), disc_copies).

 

> mnesia:create_schema

> mneisa:delete_schema

 

> mnesia:add_table_copy

> mnesia:del_table_copy

 

schema表的管理

- schema_location

- extra_db_nodes

 

Q: 增加table replications

 

schema表的类型(ram_copies, disc_copies, disc_only_copies)

 

Q: node 状态

  • nodedown
  • mnesia down
  • mnesia up

 

 

 

你可能感兴趣的:(UP)