分类:
2009-07-16 15:39:51
F:\erltest>erl -sname a Eshell V (a@chiyuan)1> |
F:\erltest>erl -sname b Eshell V (b@chiyuan)1> |
(a@chiyuan)1> net_adm:ping(b@chiyuan). pong (a@chiyuan)3>
mnesia:system_info(). ===> System info in
version {mnesia_not_loaded,a@chiyuan,{1198,764086,46000}}, d ebug level = none
<=== opt_disc. Directory
"f:/erltest/Mnesia.a@chiyuan" is NOT used. use fallback at
restart = false running db nodes = [] stopped db nodes = [a@chiyuan] no |
|
(a@chiyuan)4> mnesia:create_schema([a@chiyuan,
b@chiyuan]). ok (a@chiyuan)5>
mnesia:system_info(). ===> System info in
version " opt_disc. Directory
"f:/erltest/Mnesia.a@chiyuan" is used. use fallback at
restart = true running db nodes = [] stopped db nodes = [b@chiyuan,a@chiyuan] no |
|
(a@chiyuan)6> mnesia:start(). ok (a@chiyuan)7>
mnesia:system_info(). ===> System info in
version " opt_disc. Directory
"f:/erltest/Mnesia.a@chiyuan" is used. use fallback at
restart = false running db nodes = [a@chiyuan] stopped db nodes = [b@chiyuan] master node tables =
[] remote = [] ram_copies = [] disc_copies = [schema] disc_only_copies = [] [{a@chiyuan,disc_copies}]
= [schema] 2 transactions
committed, 0 aborted, 0 restarted, 0 logged to disc 0 held locks, 0 transactions waits
for other nodes: [] Yes |
|
|
(b@chiyuan)1> mnesia:start(). ok (b@chiyuan)2>
mnesia:system_info(). ===> System info in
version " opt_disc. Directory
"f:/erltest/Mnesia.b@chiyuan" is used. use fallback at
restart = false running db nodes = [a@chiyuan,b@chiyuan] stopped db nodes = [] master node tables =
[] remote = [] ram_copies = [] disc_copies = [schema] disc_only_copies = [] [{a@chiyuan,disc_copies},{b@chiyuan,disc_copies}]
= [schema] 3 transactions
committed, 0 aborted, 1 restarted, 0 logged to disc 0 held locks, 0 transactions waits
for other nodes: [] yes |