neo4j 4.x新建数据库,并解决报错Unsupported administration command: CREATE DATABASE

重要

  1. 社区版本不支持命令create database xxx,只有企业版可以!
  2. 社区版本只允许同时打开一个数据库,当然你可以多开几个neo4j服务,当你打开成新的数据库后,除了新数据库和system,其他的数据库就无法访问啦,但是它们依旧存在哈

解决方法

首先进入安装目录,比如~/Software/neo4j-community-4.3.3,然后修改neo4j.conf文件:

cd conf
vim neo4j.conf

然后定位到这一行:

#dbms.default_database=neo4j

不用删除这一行,只需要按照这个格式在下面插入一行就行,改为:

#dbms.default_database=neo4j
dbms.default_database=my-test-database

这里my_test_database可以换成自己的数据库名称,但注意名字是3-63个字符之间,同时支持ascii字符、数字、点和’-‘,但是不支持’_'下划线这种!

保存文件后退出,然后关闭neo4j后重启即可让neo4j自动创建这个数据库:

cd ../bin
./neo4j restart

然后就可以切换数据库了:

在这里插入图片描述

参考文档

  • 5
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论
Chapter 1, Graph Theory and Databases, explains the fundamental theoretical and historical underpinnings of graph database technology. Additionally, this chapter positions graph databases in an ever-changing database landscape. It compares the technology/industry with other data technologies out there. Chapter 2, Getting Started with Neo4j, introduces the specific Neo4j implementation of a graph database and looks at key concepts and characteristics. Chapter 3, Modeling Data for Neo4j, covers the basic modeling techniques for graph databases. Chapter 4, Getting Started with Cypher, provides an overview of the Cypher query language. Chapter 5, Awesome Procedures on Cypher - APOC, introduces the APOC library. You will learn how to use it within Cypher queries, get information on it, and find the procedure you need among the hundreds provided by the community. Chapter 6, Extending Cypher, talks about adding functions and procedures to a Neo4j instance. Write your own APOC. Chapter 7, Query Performance Tuning, shows you how to tune your Cypher queries for better performance. Chapter 8, Importing Data into Neo4j, explains how to import data from different kinds of sources. Chapter 9, Going Spatial, covers the geolocation capabilities of Neo4j, APOC, and Neo4j Spatial. Chapter 10, Security, covers authentication and authorization in Neo4j. Chapter 11, Visualizations for Neo4j, shows you how to display your data. Chapter 12, Data Refactoring with Neo4j, explains how to change the data model to fit new requirements. Chapter 13, Clustering, sets up a causal cluster using the Neo4j Enterprise edition. Chapter 14, Use-Case Example – Recommendations, digs into a specific graph database use case--real-time recommendations--and explains it using a specific example dataset/query patterns. Chapter 15, Use-Case Example – Impact Analysis and Simulation, analyzes the impact of a change in the network on the rest of the network. In this part of the book, we will explain and explore that use case.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

呆萌的代Ma

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值