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.
  • SQL for Confluence
  • _InclusionsLibrary
  • _Archive
    • User's Guide
    • Administrator's Guide
      • Get Started - Configuration
      • Getting Help And Support
      • Configure Data Sources
      • Configure Data Source Profiles
        • Example profile configurations
        • Troubleshooting Data Source Profiles
      • Pro Tips
      • Better Together
      • Editions
      • Analytics Data
    • SQL Macro
    • SQL-file Macro
    • SQL-query Macro
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Example profile configurations

    Example profile configurations

    Jun 08, 2018

    PostgreSQL

    Form of configuration:

    dbUrl=jdbc:postgresql://[Host IP or DNS]:[PORT]/[Database Name]
    dbUser=[Username]
    dbPassword=[Password]
    dbJar=[Path]/postgresql-[Version].jar 
    dbDriver=org.postgresql.Driver
    dbConnectionProperties=[property=value[,property=value]]

    Working example:

    dbUrl=jdbc:postgresql://10.10.0.101:5432/conf621
    dbUser=admin
    dbPassword=admin
    dbJar=/Applications/atlassian/confluence/dbLib/postgresql-9.4.1212.jre7.jar
    dbDriver=org.postgresql.Driver
    dbConnectionProperties=loglevel=2

    MySQL

    Form of configuration:

    dbUrl=jdbc:mysql://[Host IP or DNS]:[PORT]/[Database Name]
    dbUser=[Username]
    dbPassword=[Password]
    dbJar=[Path]/mysql-[Version].jar 
    dbDriver=org.mysql.jdbc.Driver
    dbConnectionProperties=[property=value[,property=value]]

    Working example:

    dbUrl=jdbc:mysql://10.10.0.101:3306/confluence610
    dbUser=admin
    dbPassword=admin
    dbJar=
    http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.34/mysql-connector-java-5.1.34.jar
    dbDriver=org.mysql.jdbc.Driver
    dbConnectionProperties=loglevel=2

    Microsoft SQL Server

    Form of configuration:

    dbUrl=jdbc:sqlserver://[Host IP or DNS]:[PORT]/[;database=Database Name][;integratedSecurity=[True/False]]
    dbUser=[Username]
    dbPassword=[Password]
    dbJar=[Path]/sqljdbc-[Version].jar 
    dbDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
    dbConnectionProperties=[property=value[,property=value]]

    Working example:

    dbUrl=jdbc:sqlserver://199.193.195.111:1433;database=testing;integratedSecurity=false
    dbUser=admin
    dbPassword=admin
    dbJar=C:\Application Data\atlassian\confluence\sqljdbc-4-4.jar

    dbDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
    dbConnectionProperties=loglevel=2

    Microsoft SQL Server with jtds

    Form of configuration:

    dbUrl=jdbc:jtds:sqlserver://[Host IP or DNS]:[PORT]/[Database Name]
    dbUser=[Username]
    dbPassword=[Password]
    dbJar=[Path]/jtds-[Version].jar 
    dbDriver=net.sourceforge.jtds.jdbc.Driver
    dbConnectionProperties=[property=value[,property=value]]

    Working example:

    dbUrl=jdbc:jtds:sqlserver://10.10.0.101:1433/testing
    dbUser=admin
    dbPassword=admin
    dbJar=C:\Application Data\atlassian\confluence\jtds-1.3.1.jar

    dbDriver=net.sourceforge.jtds.jdbc.Driver
    dbConnectionProperties=loglevel=2

    Oracle

    Form of configuration:

    dbUrl=jdbc:oracle:thin://[Host IP or DNS]:[PORT]:[Database Name]
    dbUser=[Username]
    dbPassword=[Password]
    dbJar=[Path]/jtds-ojdbc6.jar 
    dbDriver=oracle.jdbc.OracleDriver
    dbConnectionProperties=[property=value[,property=value]]

    Working example:

    dbUrl=jdbc:oracle:thin:@10.10.0.101:1433:testing
    dbUser=admin
    dbPassword=admin
    dbJar=/var/opt/atlassian/confluence/lib/ojdbc6.jar

    dbDriver=oracle.jdbc.OracleDriver
    dbConnectionProperties=loglevel=2

    , multiple selections available, Use left or right arrow keys to navigate selected items
    howto

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 14, "requestCorrelationId": "4590d1c0a7564aa68f7c20402a1ae2c1"}