--- title: "URI Connection Strings" slug: "uri-connection-strings" updated: 2026-05-25T15:31:35Z published: 2026-05-25T15:31:35Z canonical: "docs.preset.io/uri-connection-strings" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.preset.io/llms.txt > Use this file to discover all available pages before exploring further. # URI Connection Strings ## Connection Strings Below is a list of connection strings for use when [connecting](/v1/docs/connecting-your-data) a database using a SQLAlchemy URI. Select linked database name for more connection details / instructions. | Database | Connection String | | --- | --- | | [Amazon Athena](https://docs.preset.io/v1/docs/aws-athena) | `awsathena+pandas://<AWS Access Key ID>:<AWS Secret Access Key>@athena.<Region Name>.amazonaws.com/<Database Name>?s3_staging_dir=s3://<S3 Bucket>/&work_group=<Work Group>` | | [Amazon Redshift](https://docs.preset.io/v1/docs/redshift) | ` redshift+psycopg2://<Username>:<Password>@<AWS Endpoint>:<Port(default:5439)>/<Database Name>?sslmode=verify-ca` To support Spectrum tables, please use this alternative driver: `redshift+spectrum://<Username>:<Password>@<AWS Endpoint>:<Port(default:5439)>/<Database Name>?sslmode=verify-ca` | | Apache Drill | `drill+sadrill://<Username>:<Password>@<Host>:<Port>/<Storage Plugin>?use_ssl=True` | | [Apache Druid](/v1/docs/apache-druid) | `druid+https://<Username>:<password>@<Host>:<Port(default:8082)>/druid/v2/sql` | | Apache Hive | `hive://<Host>:<Port(default:10000)>/<Catalog>/<Schema>` | | Apache Impala | `impala://<Host>:<Port>/<Database Name>?use_ssl=True` | | Apache Kylin | `kylin://<Host>:<Port>/<Database Name>?is_ssl=True` | | Apache Pinot | `pinot+https://pinot-broker.<Host>:<Port>/query?server=https://pinot-controller.<Host>:<Port>/` | | Apache Spark SQL | `jdbc+hive://` | | [Aurora PostgreSQL (Data API)](/v1/docs/aurora-postgresql-data-api) | `postgresql+auroradataapi://<AWS Access ID>:<AWS Secret Key>@/<Database Name>` | | Azure Synapse | `mssql+pyodbc://<Username>:<Password>@<Host>:<Port>/<Database Name>?driver=ODBC+Driver+17+for+SQL+Server` If you face an error, try including `autocommit=True` (might be required by your database): `mssql+pyodbc://<Username>:<Password>@<Host>:<Port>/<Database Name>?autocommit=True&driver=ODBC+Driver+17+for+SQL+Server` | | ClickHouse | `clickhousedb+connect://<Username>:<Password>@<Host>/<Database Name>?secure=true` | | CockroachDB | `cockroachdb://<Username>:<Password>@<Host>/<Database Name>?sslmode=require` | | CrateDB | `crate://<username>:<password>@<host>:<port>?ssl=true` try either port `5432` or `4200` | | [Databricks Hive](/v1/docs/databricks) | `databricks+pyhive://token:<Token>@<Host>:443` | | Dremio | `dremio://<Username>:<Password>@<Host>:<Port>/<Database Name>/?SSL=1` To connect using a Personal Access Token (PAT): `dremio://$token:<Personal Access Token>@sql.dremio.cloud:443/<Project ID>;SSL=1` | | Elasticsearch (OpenDistro / OpenSearch SQL) | `odelasticsearch+https://<Username>:<Password>@<Host>:<Port>/` | | Elasticsearch (SQL API) | `elasticsearch+https://<Username>:<Password>@<Host>:<Port>/` To connect using an API Key: `elasticsearch+https://<Host>:<Port>?api_key=<API Key>` | | Firebird | `firebird+fdb://<Username>:<Password>@<Host>:<Port(default:3050)>/<Path to DB>/db.fdb` | | Firebolt | `firebolt://<Username>:<Password>@<Database Name>/<Engine Name>?account_name=<Account Name>` To connect using a service account: `firebolt://<Service Account ID>:<Service Account Secret>@<Database Name>/<Engine Name>?account_name=<Account Name>` | | [Google BigQuery](https://docs.preset.io/v1/docs/big-query-database) | `bigquery://<Project ID>` | | [Google Sheets](https://docs.preset.io/v1/docs/google-sheets-connection) | `gsheets://` | | Hana | `hana://<Host>?encrypt=True` | | IBM Db2 | `db2+ibm_db://<Username>:<Password>@<Host>:<Port>/<Database Name>?Security=SSL` | | InfluxDB | `datafusion+flightsql://<Host>:<Port>?database=<Bucket-name>&token=<Your-token>` | | Microsoft SQL Server | `mssql+pymssql://<Username>:<Password>@<Host>:<Port(default:1433)>/<Database Name>` | | MongoDB | `mongodb+srv://<Username>:<Password>@<Host>/<Database>?mode=superset` | | [MySQL](https://docs.preset.io/v1/docs/mysql-connection) | `mysql+mysqlconnector://<Username>:<Password>@<Host>/<Database Name>` | | [Oracle](https://docs.preset.io/v1/docs/oracle) | `oracle+oracledb://<User>:<password>@<TNSName>` | | [PostgreSQL](https://docs.preset.io/v1/docs/postgres-connection) | `postgresql://<Username>:<Password>@<Host>/<Database Name>?sslmode=require` | | Presto | `presto://<Username>:<Password>@<Host>:<Port>/<Catalog>/<Schema>?protocol=https` | | [Rockset](https://rockset.com/docs/rest-api/) | `rockset://apikey:<Your API Key>@api.<Rockset Region>.rockset.com` | | [Snowflake](https://docs.preset.io/v1/docs/snowflake) | `snowflake://<Username>:<Password>@<Account>/<Database>?role=<Role>&warehouse=<Warehouse>` | | Teradata | `teradata://` | | [Trino](/v1/docs/trino) | `trino://<Username>:<Password>@<Host>:<Port>/<Catalog>` | | Vertica | `vertica+vertica_python://<UserName>:<Password>@<Host>/<Database Name>?ssl=1` |