In the Confluence Setup Wizard, you will be instructed confluence how to connect to your database. Please make sure to select "My own Database".
Using a JDBC connection (default)
JDBC is the recommended way to connect your confluence to the database.
The Confluence Installation Wizard will provide you with the following 2 connection options:
- Simple --this is the simplest way to connect your confluence to the database.
- through the connection string-- using this option, you need to configure specific parameters at the same time you also need to have some database connection aspects just to build the correct connection URL.
Based on the type you set, you need to provide some of the following parameters.
Easy (Simple) |
Host name (Hostname) |
t the host name or IP address that you use for your database server. |
Easy (Simple) |
Ports (Port) |
This is the MySQL port. The default port is if you do not modify it when you install PostgreSQL 5432 . |
Easy (Simple) |
Database name (db name) |
这是你 Confluence 数据库的名称,按照上面的例子,名称为 confluence |
Through the connection string (by connection string) |
Database URL (db URL) |
The database URL uses the following format: Jdbc:postgresql://<server>:<port>/<database> For example:
jdbc:postgresql://localhost:5432/confluence If you need to connect to the database using SSL, the ssl=true parameters will be provided to the database URL. For example:
jdbc:postgresql://localhost:5432/confluence?ssl=true |
also required (Both) |
User name (Username) |
The user name you need to connect to the database, in the example above, the user name is confluenceuser . |
also required (Both) |
User password (Password) |
The user name password you need to connect to the database. |
Using JNDI data sources
If you want to use the Jdni data source, please refer to the content in configuring a DataSource connection for configuration. You need to configure before starting confluence, and in the Setup wizard, confluence only uses the options provided in your Tomcat configuration.
Https://www.cwiki.us/display/CONFLUENCEWIKI/Database+Setup+for+PostgreSQL
Confluence 6 PostgreSQL Enter your database details