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

# Symptoms

One or more SQL Macro returns the following error:

```
Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
```

## Cause

The connection to your database is being refused. 

## Resolution

<span style="color: #333333">Make sure your database server is accepting connections from the Confluence server TCP address and user is authorized to connect.</span>