Prepare Database Connection String

Prepare Your Database Connection String

We currently support four types of databases: MySQL, PostgreSQL, SQL Server and Snowflake.

Here are some examples:

MySQL: mysql://user:password@host:port/database.

PostgreSQL: postgresql://user:password@host:port/database.

MongoDB: mongodb://user:password@host:port/database.

SQL Server: Data Source=host;Initial Catalog=database;User ID=user;Password=password; or Server=host;Database=database;User Id=user;Password=password;.

If you encounter any issues while preparing your connection string, we recommend using this utility tool (opens in a new tab).

If you don't have a database and just want to test, you can apply for a free PostgreSQL database at Neon DB (opens in a new tab).

Whitelist Our Static IP (Only Required for ChatGPT Plugin)

You need to whitelist our server IP to allow the ChatGPT plugin to connect to your database successfully.

If you're unsure how to whitelist an IP, please contact your database provider or your database administrator. (Or ask ChatGPT directly).

If you are using the Desktop app, you can skip this step. (The Desktop app connects to your database from your local computer).

If you are curious about how we connect to your database, you can refer to This Blog.