Current location - Quotes Website - Collection of slogans - How does NineData connect to MongoDB database?
How does NineData connect to MongoDB database?
NineData supports adding databases of different types and environments for unified management. You can use SQL development, backup recovery, data replication, database comparison and other functions. Here are the steps to add a MongoDB data source:

1. Log in to the NineData console.

2. in the left navigation bar, click data source management >; Source of data.

3. click create data source in the page, and in the data source type window that pops up, select self-built database >; MongoDB, configure parameters according to the following table on the page of creating data source. MongoDB is configured as follows:

Data Source Name: enter the name of the data source to facilitate subsequent search and management.

Mode Type: Select the deployment mode of MongoDB data source, and support stand-alone, replica set and fragmented cluster.

Connection mode: select the access mode of data source, and support public network address, gateway and SSH tunnel.

Connection Address: Enter the connection address and port of the data source.

Authentication Database: enter the name of the authentication database to which the account belongs; The default value is admin.

Database Account: Enter the user name of the data source.

Database password: enter the password of the data source.

Access Area: Select the area closest to the location of the data source.

Environment: according to the actual business use of the data source, it can be a production environment or a development environment, or a custom environment can be created.

4. After all the configurations are completed, click the connection test on the right side of Create Data Source to test whether the data source can be accessed normally. When prompted that the connection is successful, click Create Data Source to finish adding the data source. Otherwise, please recheck the connection settings until the connection test is successful.