Home > Database > Mysql Tutorial > Erlang Mnesia数据库的备份和还原

Erlang Mnesia数据库的备份和还原

WBOY
Release: 2016-06-07 15:42:03
Original
1108 people have browsed it

1、备份: mnesia:backup(/home/mnesia_backup/20140903.log). 2、还原: mnesia:restore(/home/mnesia_backup/20140903.log,[]). 第一次测试的时候,先备份,之后将mnesia目录下文件统统删除。之后运行还原的命令,竟然出现以下错误: 起初以为是reserved_a

1、备份:

mnesia:backup("/home/mnesia_backup/20140903.log").

Erlang Mnesia数据库的备份和还原


2、还原:

mnesia:restore("/home/mnesia_backup/20140903.log",[]).

第一次测试的时候,先备份,之后将mnesia目录下文件统统删除。之后运行还原的命令,竟然出现以下错误:

Erlang Mnesia数据库的备份和还原

起初以为是reserved_acc数据表有问题,最后才发现,将mnesia目录文件全部删除后,表的数据都不存在了。所以要先建立空表。之后才能还原!

Erlang Mnesia数据库的备份和还原

这样就正常了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template