Skip to main content

Overview

Workshop supports eight database connectors covering relational, document, distributed, and graph databases. Once connected, Workshop can query your databases, explore schemas, and help you analyze data through natural conversation.
DatabaseTypeDefault PortRequired Fields
PostgreSQLRelational5432Host, Port, Database, Username, Password
MySQLRelational3306Host, Port, Database, Username, Password
Microsoft SQL ServerRelational1433Server, Database, Username, Password
MongoDBDocument (NoSQL)27017Host, Port, Username, Password
SupabasePostgreSQL backendAPI URL, API Key
NeonServerless PostgreSQLConnection URL
TiDBDistributed SQL4000Host, Port, Database, Username, Password
TigerGraphGraphHost URL, Username, Password, Graph Name

General Setup

All database connectors follow the same workflow:
1

Open Hub > Connectors

Open the Workshop Hub from the sidebar and click the Connectors tab.
2

Select your database

Find and click the card for your database type.
3

Enter credentials

Fill in the connection fields described for your database below.
4

Name and save

Give your connection a memorable name and click Add Connection.

General Security Recommendations

These apply to all database connectors:
  • Create a dedicated read-only user for Workshop — avoid admin or superuser accounts
  • Use SSL/TLS connections when available (most cloud providers enable this by default)
  • Restrict network access via firewalls, IP allowlists, or VPC/private networking
  • Rotate credentials periodically and update your Workshop connection when you do
Never use superuser or admin accounts (postgres, root, sa, etc.) for Workshop connections. Always follow the principle of least privilege.

PostgreSQL

PostgreSQL is a powerful, open-source relational database. Workshop connects using standard host-based credentials.
If you’re using Neon (serverless PostgreSQL) or Supabase, use their dedicated connectors for a simpler setup.

Required Fields

FieldDescriptionExample
HostServer hostname or IPpostgres.example.com
PortServer port5432
DatabaseDatabase namemyapp_production
UsernamePostgreSQL userapp_user
PasswordUser password

Finding Credentials by Provider

  • Amazon RDS: Endpoint and Port in the Connectivity section of your instance
  • Google Cloud SQL: Public/Private IP in the instance overview
  • Azure Database: Server name in the Overview page
  • Self-hosted: Contact your database administrator

Read-Only User Setup

CREATE USER workshop_reader WITH PASSWORD 'YourSecurePassword';
GRANT CONNECT ON DATABASE your_database TO workshop_reader;
GRANT USAGE ON SCHEMA public TO workshop_reader;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO workshop_reader;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO workshop_reader;

Troubleshooting

IssueSolution
Connection refusedVerify host/port. Check listen_addresses and pg_hba.conf. Verify firewall rules.
Authentication failedCheck username/password. Verify pg_hba.conf auth method (md5 or scram-sha-256).
Database does not existVerify exact database name (case-sensitive). Run \l in psql to list databases.
SSL requiredEnsure sslmode=require is used. Most cloud providers require SSL by default.
Learn more: PostgreSQL Documentation

Verifying Any Database Connection

After connecting, ask Workshop:
Show me all tables in my database
What columns are in the users table?
How many rows are in each table?
If Workshop returns your data, the connection is working.