# Managing Integrations

Integrating your existing database, APIs as well as 3rd party to Nected is a simple and easy process. You just need to create an integration for either a staging or a production database.

## Creating Integrations

1. Log into Nected with your Email ID and password.<br>

   <figure><img src="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FuEEs1sVvozewOPIGXM7X%2FNected_home_dash.png?alt=media&#x26;token=9c0dd992-72cc-40d4-895d-c5bd25a2d52c" alt=""><figcaption></figcaption></figure>
2. Click **Integrations** in the left navigation to open the [**Integrations**](https://nected.io/integrations) page.<br>

   <figure><img src="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FjQlg7CuG1EuOHwGQgvOn%2FNected_integration_page.png?alt=media&#x26;token=f5b6f129-80cd-423a-be71-d200388102e0" alt=""><figcaption></figcaption></figure>
3. Click **+ Connect** under the database type for which you want to create a connector.\
   \
   The connection information form for your database type opens, in this example MySQL.

   <figure><img src="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FQpmS9N0WQQIYPyEwrJDS%2F4.png?alt=media" alt=""><figcaption></figcaption></figure>
4. Enter the connection information for your integrations. Enter the integration, following the configuration steps mentioned in [Integration Libraries](https://docs.nected.ai/nected-docs/integrations/integrations-libraries) as per corresponding integrations. Click **Test Connection**.
5. Publish your connector to Staging or Production, based on[ your environment](https://docs.nected.ai/nected-docs/references/environments).

{% hint style="info" %}
**Note:** The connection information is the same for both staging and production databases for all database types – MongoDB, MySQL, MS SQL Server, Postgres Redshift, and so on. Refer to the [**Connector Configuration Parameters**](https://docs.nected.ai/nected-docs/integrations/integrations-libraries) for the list of database and REST API connector parameters.
{% endhint %}

After you successfully publish a connector, you can connect to the database to create Nected [Datasets](https://docs.nected.ai/nected-docs/datasets/overview) and [Rules](https://docs.nected.ai/nected-docs/rules/overview) to run on the target database in the same environment.

## Editing Integrations

You can edit integrations if you are moving to a new configuration or have a change in existing configurations.

Follow this procedure to edit an existing integrations:

1. Log into Nected with your Email ID and password.
2. Click **Integrations** in the left navigation to open the [**Integrations**](https://nected.io) page.<br>

   <figure><img src="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2F0yFKBFmYGv9QLdMx9oaI%2F6.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Click **three dots** next to the connector state for the connector that you want to edit and select **Edit**.\
   \
   The connector configuration form for your integration opens.

   <figure><img src="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FCX2cPYMcrssQp8o8tdlP%2F7.png?alt=media" alt=""><figcaption></figcaption></figure>
4. Modify the connection configuration following the configuration steps mentioned in [Integration libraries](https://docs.nected.ai/nected-docs/integrations/integrations-libraries) as per corresponding integrations.
5. Test the connection to your integration using the modified information.
6. After a successful connection to the database, publish your connector to Staging or Production, based on[ your environment](https://docs.nected.ai/nected-docs/references/environments).
7. Close the connection information form and check the connector status.

After you successfully edit a connector, you can connect to the database.

## Deleting Integrations

You may want to delete an integration in certain scenarios, such as:

* Your integration does not exist anymore.
* You want to create a new connector for a different staging/production database.
* You no longer need to use the connector because you moved from the staging to the production database.

Follow this procedure to delete an existing database connector:

1. Log into Nected with your Email ID and password.
2. Click **Integrations** in the left navigation to open the **Integrations** page.<br>

   <figure><img src="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FV5tlFJt99UwR6MEmmIZr%2F8.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Click **three dots** next to the connector state for the connector that you want to remove and select **Delete**.\
   The **Delete Connector** dialogue box opens.<br>

   ![](https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FIPUW3kZZpxOMmX2y677y%2F10.png?alt=media)
4. Click **Delete** to confirm the delete operation.

{% hint style="info" %}
***Note**:* The delete operation will fail if a connector is being used in any of datasets or rules. You must first remove the connector & update your existing datasets or rules, and then delete the connector.
{% endhint %}

## Usable States between Integrations, DataSet & Rules&#x20;

You can refer to [integration states](https://docs.nected.ai/nected-docs/overview#integration-states), [allowed states in the dataset & rules](https://docs.nected.ai/nected-docs/references/allowed-status-combinations) as well as any [error](https://docs.nected.ai/nected-docs/references/troubleshooting-errors) to do troubleshooting if you are facing any issues in managing integration.
