---
title: "Unable to Connect to Database"
canonical: "https://support.appfire.com/space/SQL/74321964/Unable%20to%20Connect%20to%20Database"
format: markdown
---
> Macro (aura-html)

# Symptoms

One or more SQL Macro returns the following error:

```
Error rendering macro 'sql-query' : Unable to connect to database using jdbc:mysql://<HOSTNAME>:<PORT>/<DBNAME> with user <USER>

```

## Cause

Your SQL Macro is referencing a Data Source Profile that has one or more incorrect connection configurations. 

## Resolution

Double check the connection information associated with this Data Source Profile (Hostname, Port, Database, Username, and Password).