# Connect to NebulaGraph¶

After successfully launching Explorer, you need to configure to connect to NebulaGraph. This topic describes how Explorer connects to the NebulaGraph database.

## Prerequisites¶

Before connecting to the NebulaGraph database, you need to confirm the following information:

• The NebulaGraph services and Explorer are started. For more information, see Deploy Explorer.
• You have the local IP address and the port used by the Graph service of NebulaGraph. The default port is 9669.
• You have a NebulaGraph account and its password.

## Procedure¶

To connect Explorer to NebulaGraph, follow these steps:

1. On the Config Server page of Explorer, configure these fields:

• Host: Enter the IP address and the port of the Graph service of NebulaGraph. The valid format is IP:port. The default port is 9669.

Note

• When NebulaGraph and Explorer are deployed on the same machine, you must enter the IP address of the machine, but not 127.0.0.1 or localhost, in the Host field.
• When connecting a NebulaGraph database on a new tab, The new session will overwrite the sessions of the old TAB. If you need to log in to multiple NebulaGraph databases at the same time, you can use different browsers or non-trace mode.

• If authentication is not enabled, you can use root and any password as the username and its password.
• If authentication is enabled and no account information has been created, you can only log in as GOD role and use root and nebula as the username and its password.
• If authentication is enabled and different users are created and assigned roles, users in different roles log in with their accounts and passwords.
2. After the configuration, click the Login button.

Note

One session continues for up to 30 minutes. If you do not operate Explorer within 30 minutes, the active session will time out and you must connect to NebulaGraph again.

## Clear connection¶

When Explorer is still connected to a NebulaGraph database, on the upper right corner of the page, select > Clear Connect.

After that, if the configuration database page is displayed on the browser, it means that Explorer has successfully disconnected from the NebulaGraph.

Last update: March 13, 2023