Installation and Administration

Connecting Nuxeo to the Database

Updated: January 25, 2019 Page Information Edit on GitHub

To connect Nuxeo to your database, you need to tell Nuxeo which database template to use and provide the database connection information.

Connecting Nuxeo to the Database From the Admin Center

  1. In the Admin Center, click on the Setup tab of system information section.
  2. In the Main information section, select the target database in the drop down menu. A new Database Information section is displayed on the page.
  3. Fill in the database connection information.
  4. Click on the Save button displayed below the Email information section.
  5. Restart your server.

Connecting Nuxeo to the Database From the Startup Wizard

The first time you start your Nuxeo server, a wizard is displayed to help you setup your application. One of the steps is about the database: select the database you want to use in the drop down list and provide the connection information to the database.

Connecting Nuxeo to the Database From the nuxeo.conf File

By default, the "default" template is enabled on your Nuxeo server (see the Database templates section for more information on this template). You need to edit it to change the template to be used.

  1. Open your nuxeo.conf file with a text editor.

For Windows users

Do not use Office writers, nor Notepad. Wordpad is fine, Notepad++ and SciTE are good text editors, there are a lot of other text editors.

  1. If needed, uncomment or edit the nuxeo.templates parameter and replace default with the wanted database template's name.
  2. Uncomment or edit the parameters below and provide their values:

    • nuxeo.db.name
    • nuxeo.db.user
    • nuxeo.db.password
    • nuxeo.db.host
    • nuxeo.db.port

      For production or load testing environments

      These are the minimum required parameters to enable the Nuxeo server to communicate with the database. For a production or load testing environment, you may need to provide the other commented parameters.

  3. Save your modifications.
  4. Restart the server.

Database Templates

The default available database templates are:

  • common: common template used by other templates;
  • common-binding: (JBoss only), template used by other templates;
  • common-deploydir: (JBoss only), template used by other templates;
  • default: default Nuxeo configuration template for test purpose;
  • https: (Tomcat only), not recommended template for making the server listen to port 443 (HTTPS);
  • monitor: (JBoss only), activate the JBoss LogginMonitor service to log miscellaneous MBean informations;
  • postgresql: PostgreSQL configuration template;
  • postgresql-quartz-cluster
  • mssql: MS SQL Server configuration template;
  • mssql-quartz-cluster
  • mysql: MySQL configuration template;
  • oracle: Oracle configuration template;
  • oracle-quartz-cluster
  • custom: sample custom templates. Of course, this template is empty by default. One should copy it outside $NUXEO_HOME and adapt to his needs.

The most commonly used templates are described below. For more information read the page Configuration Templates.

default

This is the default Nuxeo configuration. It is designed for development or test purpose.

  • Repository backend: H2
  • Services backend: Derby

This is the recommended configuration for production, based on PostgreSQL.

  • Repository backend: PostgreSQL XA
  • Services backend: PostgreSQL XA

The PostgreSQL driver is included in the Nuxeo applications by default. However, if needed you can download it from http://jdbc.postgresql.org/download.html#current. The JAR (for instance postgresql-9.0-801.jdbc4.jar) is located in $NUXEO/lib/.

You can use a later driver with an earlier database version, for instance the 9.0 driver still works with PostgreSQL 8.3 or 8.4.

See the page Configuring PostgreSQL for more information on the database configuration.

oracle

  • Repository backend: Oracle XA
  • Services backend: Oracle

The driver is not included in Nuxeo applications. To install it:

  1. Download the appropriate JDBC driver from: http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html.
  2. The JAR must be placed in $NUXEO/lib/.

See the page Configuring Oracle for more information on the database configuration.

mssql

  • Repository backend: Ms SQL Server XA
  • Services backend: Ms SQL Server XA

The Open Source JTDS driver must be used (the official Microsoft JDBC driver has problems). You can download it from: http://repo2.maven.org/maven2/net/sourceforge/jtds/jtds/1.2.2/jtds-1.2.2.jar.

This JAR must then be placed in $NUXEO/lib/.

See the page Configuring MS SQL Server for more information on the database configuration.

mysql

  • Repository backend: MySQL XA
  • Services backend: MySQL

The JDBC driver (dowloadable from http://www.mysql.com/downloads/connector/j/) is included in Nuxeo applications and is located in $NUXEO/lib/.

We recommend using a near-infinite wait_timeout in the MySQL server configuration.


4 months ago Andrew Goodricke Updated for 10.10
4 years ago Solen Guitter 40
4 years ago Solen Guitter 39 | Screenshot and link update
5 years ago Solen Guitter 36
5 years ago Solen Guitter 37 | Migration of unmigrated content due to installation of a new plugin
5 years ago Solen Guitter 38 | Migration of unmigrated content due to installation of a new plugin
5 years ago Solen Guitter 35
5 years ago Solen Guitter 34
5 years ago Thierry Martins 33
5 years ago Solen Guitter 31 | Updated screenshot
5 years ago Solen Guitter 32 | Migration of unmigrated content due to installation of a new plugin
5 years ago Alain Escaffre 30
6 years ago Solen Guitter 29
7 years ago Solen Guitter 23 | Added related pages in other documentation
7 years ago Solen Guitter 24 | Migrated to Confluence 4.0
7 years ago Solen Guitter 25 | Migration of unmigrated content due to installation of a new plugin
7 years ago Solen Guitter 26 | Migration of unmigrated content due to installation of a new plugin
7 years ago Solen Guitter 27 | Migration of unmigrated content due to installation of a new plugin
7 years ago Solen Guitter 28 | Migration of unmigrated content due to installation of a new plugin
7 years ago Florent Guillaume 22 | Added related content
7 years ago Solen Guitter 21 | Added related content
8 years ago Solen Guitter 20 | added instructions for nuxeo.conf edition and Startup wizard
8 years ago Solen Guitter 19
8 years ago Solen Guitter 18
8 years ago Julien Carsique 17
8 years ago Julien Carsique 15
8 years ago Julien Carsique 16
8 years ago Julien Carsique 14
8 years ago Wojciech Sulejman 13 | cleanup
8 years ago Wojciech Sulejman 12 | Provided database connection information using templates. Added examples.
8 years ago Wojciech Sulejman 10
8 years ago Wojciech Sulejman 11
8 years ago Wojciech Sulejman 9
8 years ago Solen Guitter 8
8 years ago Solen Guitter 5
8 years ago Solen Guitter 6
8 years ago Solen Guitter 7
8 years ago Solen Guitter 4
8 years ago Florent Guillaume 3
8 years ago Florent Guillaume 2
8 years ago Florent Guillaume 1
History: Created by Florent Guillaume

We'd love to hear your thoughts!

All fields required