Overview
This guide walks you through connecting TextQL to your Amazon Aurora database. Aurora supports both MySQL and PostgreSQL engines, and this guide covers both.Prerequisites
To connect TextQL with your Amazon Aurora database, you will need:- Host URL (SQL endpoint) and Port (default: 3306 for MySQL, 5432 for PostgreSQL)
- Username and Password
- Database name
- Dialect (MySQL or PostgreSQL)
Gathering Connection Details from AWS
Step 1: Get Credentials from AWS Secrets Manager
- Navigate to AWS Management Console and search for Secrets Manager
- Find your database secret (named like
rds!db-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) - Click the secret and then click Retrieve secret value
- Copy the username and password values
Step 2: Get Host and Port from RDS Console
- Go to AWS RDS Console and click Databases in the left sidebar
- Click on your Aurora database instance
- Click the Connectivity & security tab
- Under Endpoint & port section, copy the endpoint URL and port number
Step 3: Identify Database Engine
- On the database details page, click the Configuration tab
- Note the Engine type (e.g., MySQL Community 8.0.43 or PostgreSQL)
- This determines which Dialect to select in TextQL
Example Connection Details
Creating the Connector in TextQL
Step 1: Navigate to Connectors Page
- Go to the TextQL Connectors Page
- Click New Connector
Step 2: Select Amazon Aurora
Select Amazon Aurora from the available connectors to open the configuration form.Step 3: Enter Connection Details
The form requires the following information:| Field | Description | Example |
|---|---|---|
| Connector Name | A descriptive name to identify this connection | My Aurora Cluster |
| Host URL | The endpoint URL from RDS console | aurora-cluster.cluster-xxxxx.us-east-1.rds.amazonaws.com |
| Port | Port number (3306 for MySQL, 5432 for PostgreSQL) | 3306 |
| Dialect | Select MySQL or PostgreSQL based on engine type | MySQL |
| Username | Your database username | admin |
| Password | Your database password from Secrets Manager | •••••••• |
| Database | The name of the database to connect to | ecommerce |
| Schema | (Optional) Specific schema within your database | public |
Step 4: Test and Create
- Click Test Connection to verify your credentials and network access
- Once the test succeeds, click Create Connector to save the connection
Troubleshooting
Connection Fails
Verify the following:- Credentials are correct and match what’s configured in AWS
- Aurora cluster is running and accessible
- Using the correct endpoint (dedicated vs. serverless)
Having trouble connecting? See the Network Configuration Guide for firewall and IP whitelisting setup.
Authentication Errors
Check:- Username and password from Secrets Manager are correct
- User has appropriate database permissions
- Password hasn’t expired
Timeout Errors
Possible causes:- Security group rules not configured correctly
- VPC configuration blocking external access
- Aurora cluster is stopped or paused
- Network connectivity issues
What’s Next
Once your Aurora connector is set up, you can:- Ask Ana natural language questions about your data
- Generate SQL queries and visualizations
- Create reports and dashboards
- Share insights with your team