社区版如何新建一个数据库其不删除原来的数据库
Since you’re using Neo 3.x
, to create a new database without removing your existing one, you can simply edit the neo4j.conf file in your conf
directory of your $NEO4J_HOME
.
Search for dbms.active_database=
, which should have the default value of graph.db
. Replace it with some other name and start neo4j again. Now, a new database will be created under that directory name. To switch back to your previous db, repeat the steps, just replace your new value with graph.db
in the configuration file.
- Don’t forget to also UNCOMMENT that line you’re editing in the neo4j.conf file
切换到$NEO4J_HOME/data/databases
, 你会发现新建了一个文件夹,即你新建的数据库
本文使用 文章同步助手 同步
网友评论