Supabase
Supabase Connection Setup Guide
Section titled “Supabase Connection Setup Guide”Connect your Supabase project to AnalytAI. Supabase uses PostgreSQL, so you’ll need your database connection string.
Prerequisites
Section titled “Prerequisites”- Active Supabase project
- Database password (not just the API key)
Step 1: Get Your Supabase Connection String
Section titled “Step 1: Get Your Supabase Connection String”- Go to your Supabase Dashboard
- Select your project
- Go to Settings → Database
- Scroll down to Connection string
- Copy the “Session pooler” connection string (port 5432)
- It will look like:
postgresql://postgres:[YOUR-PASSWORD]@db.project.supabase.co:5432/postgres
Step 2: Replace the Password
Section titled “Step 2: Replace the Password”Replace [YOUR-PASSWORD] with your actual database password:
-- Before:postgresql://postgres:[YOUR-PASSWORD]@db.project.supabase.co:5432/postgres
-- After:postgresql://postgres:your_actual_password@db.project.supabase.co:5432/postgresStep 3: Get Your Database Password
Section titled “Step 3: Get Your Database Password”If you don’t know your database password:
- In Supabase Dashboard, go to Settings → Database
- Scroll to Database password
- Click Reset database password if needed
- Use that password in the connection string
Step 4: Connect in AnalytAI
Section titled “Step 4: Connect in AnalytAI”In the AnalytAI application:
- Go to Data Sources → Supabase
- Paste your complete connection string
- Click Test Connection
- Click Next to proceed with schema setup
Important Notes
Section titled “Important Notes”Connection String Format
Section titled “Connection String Format”- Must use the Session pooler URL (port 5432)
- Do NOT use the Direct connection (port 5432) for production
- Format:
postgresql://postgres:password@db.project.supabase.co:5432/postgres
Security
Section titled “Security”- Your database password is different from your Supabase API key
- Keep your connection string secure
- AnalytAI only needs read access to analyze your data
Troubleshooting
Section titled “Troubleshooting””Connection refused” or “Invalid password”
Section titled “”Connection refused” or “Invalid password””- Verify your database password is correct
- Make sure you’re using the Session pooler URL (not Direct connection)
- Check if your Supabase project is active
”Host not found”
Section titled “”Host not found””- Verify the hostname in your connection string matches Supabase dashboard
- Make sure your project hasn’t been paused or deleted
That’s it! Supabase setup is complete. Just provide the connection string and AnalytAI will handle the rest. 🚀