Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

SQL for Confluence
Results will update as you type.
  • Get started
  • Data Center 11.x
    • Help and support - 11.x
      • Troubleshoot Data Source Profiles - 11.x
        • Data source not found - 11.x
        • Unable to connect to database - 11.x
        • Unable to load database driver - 11.x
      • Troubleshoot Application Server Based Data Sources - 11.x
      • Sample queries - Confluence labels
      • SQL for Confluence Announcement and FAQ
    • Use cases - 11.x
    • Macro Reference - 11.x
    • Key Concepts - 11.x
    • Overview - Data Center 11.x
    • Installation and configuration - Data Center
  • Cloud
  • Release notes
  • Help and support
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Unable to connect to database - 11.x
    Updated Aug 11

    Unable to connect to database - 11.x

    Symptoms

    One or more SQL macros return the following error:

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

    Cause

    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 such as: Hostname, Port, Database, Username, and, Password. 

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 15, "requestCorrelationId": "44686dfbe8ff4f139017ccc1df8ead21"}