首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在Neo4j 4.0下新建数据库出错

在Neo4j 4.0下新建数据库出错
EN

Stack Overflow用户
提问于 2020-02-27 17:25:00
回答 2查看 9.9K关注 0票数 17

我使用的是Debian9.9,Neo4j的版本是4.0。我在使用neo4j浏览器创建新数据库时遇到问题。我遵循的指令是this

我已经尝试了以下Cypher命令:

代码语言:javascript
运行
复制
create database myNewDatabase

但是,会弹出如下错误:

代码语言:javascript
运行
复制
Neo.ClientError.Statement.NotSystemDatabaseError
Unsupported administration command: create database myNewDatabase

请让我知道错误消息的含义以及如何解决它。提前Thx:-)

EN

回答 2

Stack Overflow用户

发布于 2020-06-25 06:28:04

在Neo4j的专业版版本的V.4(发布于2020年2月)中,很容易创建新的数据库。Documentation

社区的版本中,这需要一个技巧:

代码语言:javascript
运行
复制
1. Edit the file  NEO4J_HOME\conf\neo4j.conf

2. Un-comment the line:  dbms.default_database=neo4j

3. Change the neo4j  to whatever database name you want for a new database.  Note: names must have between 3 and 63 characters.   For example:   dbms.default_database=mydatabase

4. Save the file

5. (If applicable) Kill the database server, and close the browser window with the Neo4j UI

6. Start the neo4j server, and open a new browser window, pointed as usual to http://localhost:7474/

7. Both the old (default) database, "neo4j" and the one you just created will show up.  However, attempting to switch between them causes an error.   If a switch is desired, repeat the above steps starting from (3)

注意:以上步骤将在NEO4J_HOME\data\databases中创建一个名为mydatabase (或您使用的任何名称)的文件夹,并填充其内容。

我个人认为在数据库之间切换是一个非常基本的操作,Neo4j应该让它在社区版中很容易访问!

票数 24
EN

Stack Overflow用户

发布于 2020-02-27 18:40:57

我想我已经得到了我的问题的答案。事实证明,我的许可证(社区版)不支持使用多个数据库。另一种选择是this

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60429947

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档