/
How to resolve a Could not create connection to database server error - 10.x

How to resolve a Could not create connection to database server error - 10.x

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

Make sure:

  • Your database server is accepting connections from the Confluence server TCP address.
  • The user is authorized to connect to the database.

Related content