我使用的是Debian9.9,Neo4j的版本是4.0。我在使用neo4j浏览器创建新数据库时遇到问题。我遵循的指令是this。
我已经尝试了以下Cypher命令:
create database myNewDatabase
但是,会弹出如下错误:
Neo.ClientError.Statement.NotSystemDatabaseError
Unsupported administration command: create database myNewDatabase
请让我知道错误消息的含义以及如何解决它。提前Thx:-)
发布于 2020-06-25 06:28:04
在Neo4j的专业版版本的V.4(发布于2020年2月)中,很容易创建新的数据库。Documentation
在社区的版本中,这需要一个技巧:
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应该让它在社区版中很容易访问!
发布于 2020-02-27 18:40:57
我想我已经得到了我的问题的答案。事实证明,我的许可证(社区版)不支持使用多个数据库。另一种选择是this。
https://stackoverflow.com/questions/60429947
复制相似问题