Getting started

Connecting to your database

Connecting to your database

There are several different ways of connecting to the database that you can choose from.

Database Users are managed by the database. If your database is newly provisioned, please use the default user (neo4j/neo4j) to connect to your database for the first time. Please take a look at our article on managing users.

Finding your database connection details

To locate your database connection details, please navigate to your database management interface > Connect tab.

connect-to-db

Connect using Bolt connection URI

Bolt is a binary protocol for Neo4j, which is designed for high-performance throughputs, using a compact binary encoding over persistent TCP connections. You can find more information on Bolt in the official release notes.

You can connect using Bolt with the Connection URI and the username and password of one of the database users that you can create via a Cypher command for example, using Neo4j Browser. Navigate to the Connect tab > Connection URI and from there, you can copy the URI.

conn-uri

Connect using Neo4j Browser

Neo4j databases come with a built-in, interactive UI that allows you to explore your database. Neo4j Browser is a developer-focused tool that allows you to execute Cypher queries and visualize the results. Simply navigate to the Connect tab > and either launch the Neo4j Browser or copy the URL of the Neo4j Browser.

neo4j-browser

If your database is newly provisioned, you will need to create a new database user to connect to your database. Please take a look at our article on managing users.

If you’re having trouble opening a Neo4j Browser, please make sure your IP is added to the IP whitelist rule. More information about IP Whitelisting can be found here.

Connect from Neo4j Desktop

The first thing you’ll need is to have your GrapheneDB database created. Once the database is ready, the next thing you need is to create a database user. More info on managing users can be found here.

Now, please proceed to download and install the Neo4j Desktop , if you haven’t done so already.

  1. Open Neo4j Desktop > Create Project > Give the project a name > click on +Add > choose Remote connection option.

    remote-connection

  2. Enter the Database Name and Connection (Bolt) URI. Click on the Next button. You can find your Connection URI in your Connect tab of the database management interface.

    db-name-and-uri

  3. Now, to connect your database user, please select username/password option, enter the credentials, and click on Save button.

    username-password

  4. Finally, just click on Connect button and you should see the status changed to Active.

    connect-desktop

    active-status

Connecting from Neo4j CLI

To connect using Neo4j CLI, you will first need to create a database and your database user. Next, navigate to the Connect tab of your database management interface where you can obtain the database Connection URI.

Now, download and uncompress Neo4j Cypher Shell on your machine, if you haven’t done so already. Enter your database connection settings and you’re all set.

./cypher-shell -a neo4j+s://gdb-ahr2t6ztykofuhi3rkxw.graphenedb.com:24786 -u neo4j -p jovana
Connected to Neo4j 4.4.12 at neo4j+s://gdb-ahr2t6ztykofuhi3rkxw.graphenedb.com:24786 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.
neo4j@neo4j>

You can find a complete reference to the Neo4j CLI following this link .

Connect using HTTP transactional API

You can also access Neo4j through the HTTP API. Please note that the official drivers do not support HTTP communication. The official documentation on the HTTP API can be found here.

To connect to the HTTP API directly or using a driver, please use the HTTPs URI, which you can find on the Connect tab of your database management interface, and please note that the default user (neo4j) needs to be changed. More info is in the following article on database users.

uri

Try out today and get $50 in CreditsTry out today and get $50
Check
Evaluate for free
Check
Pay as you go
Check
No hidden costs