Home

Integrate database

You can integrate Unravel managed database as well as an external database for usage with Unravel. Unravel supports MySQL, MariaDB, and PostgreSQL (Postgres). Check the compatibility matrix for the versions of MySQL, MariaDB, and Postgres that are compatible with the corresponding Unravel platform version.

You can integrate Unravel managed MySQL as well as external MySQL with Unravel.

Unravel managed MySQL

Important

The following packages must be installed for fulfilling the OS level requirements for MySQL:

  • numactl-libs (for libnuma.so)

  • libaio (for libaio.so)

To integrate with Unravel managed MySQL, do the following:

  1. Create a mysql directory in /tmp. Provide permissions and make it accessible to the user who installs Unravel.

  2. Download the following tar files for MySQL/MariaDB server to /tmp/mysql directory:

    • mysql-5.7.27-linux-glibc2.12-x86_64.tar.gz

    • mysql-connector-java-5.1.48.tar.gz

  3. Run the following command, as an Unravel user, to setup Unravel with MySQL database:

    <unravel_installation_directory>/versions/<build>/setup --extra /tmp/mysql

    This will configure and manage MySQL for usage with Unravel.

External MySQL

For configuring an external MySQLdatabase with Unravel, you must provide the JDBC connector. This can either be as a tar file or as a jar file.

To integrate Unravel with an external database do the following:

  1. Create a directory for MySQL in /tmp. Provide permissions and make it accessible to the user who installs Unravel.

  2. Add the JDBC connector to /tmp/<MySQL-directory>/<jdbcconnector> directory. This can be either a tar file or a jar file.

  3. Run the following command, as Unravel user, to setup Unravel with an external MySQL database:

    <unravel_installation_directory>/versions/<build>/setup --extra /tmp/<MySQL-directory> --external-database TYPE HOST PORT SCHEMA USERNAME PASSWORD/
    
    # TYPE should be mysql

    Note

    The TYPE, HOST, PORT, SCHEMA, USERNAME, PASSWORD are optional fields and are prompted if missing.

    This will setup Unravel with an external MySQL.

Note

In the case of MySQL 8.0, the client does not support the authentication protocol requested by the server and there can be a failed connection to the database. Run the following to resolve this authentication issue:

ALTER USER 'unravel'@'unravel-host' IDENTIFIED WITH mysql_native_password BY 'password';flush privileges;

Where unravel is your user, unravel-host is the URL, and password is your password.

You can integrate Unravel with MariaDB by providing a Java JDBC connector.

Unravel managed MariaDB

Important

The following packages must be installed for fulfilling the OS level requirements for MariaDB:

  • numactl-libs (for libnuma.so)

  • libaio (for libaio.so)

To configure with Unravel managed MariaDB, do the following:

  1. Create a mariadb directory in /tmp. Provide permissions and make it accessible to the user who installs Unravel.

  2. Download the following tar files for MariaDB server to /tmp/mysql directory:

    • mariadb-10.4.13-linux-x86_64.tar.gz

    • mariadb-java-client-2.6.0.jar

  3. Run the following command, as an Unravel user, to setup Unravel with MariaDB database:

    <unravel_installation_directory>/versions/<build>/setup --extra /tmp/mariadb

    This will configure and manage MariaDB for usage with Unravel.

External MariaDB

For configuring an external MariaDB database with Unravel, you must provide the JDBC connector. This can either be as a tar file or as a jar file.

To integrate Unravel with external MariaDB, do the following:

  1. Create a directory for MariaDB in /tmp. Provide permissions and make it accessible to the user who installs Unravel.

  2. Add the JDBC connector to /tmp/<MariaDB-directory>/<jdbcconnector> directory. This can be either a tar file or a jar file.

  3. Run the following command, as Unravel user, to setup Unravel with an external MariaDB database:

    <unravel_installation_directory>/versions/<build>/setup --extra /tmp/<MariaDB-directory> --external-database TYPE HOST PORT SCHEMA USERNAME PASSWORD/
    
    # TYPE is mariadb

    Note

    The TYPE, HOST, PORT, SCHEMA, USERNAME, PASSWORD are optional fields and are prompted if missing.

    This will setup Unravel with an external MariaDB.

You can configure external PostgreSQL as well as the Unravel managed PostgreSQL.

Unravel managed PostgreSQL

To configure the Unravel managed Postgres database, all you need to do is run the setup command:

<unravel_installation_directory>/versions/<build>/setup
External PostgreSQL

To configure external PostgreSQL, run the following command from the installation directory:

<unravel_installation_directory>/versions/<build>/setup --external-database TYPE HOST PORT SCHEMA USERNAME PASSWORD/

# TYPE is postgresql

Note

The TYPE, HOST, PORT, SCHEMA, USERNAME, PASSWORD are optional fields and are prompted if missing.

This will setup Unravel with an external PostgreSQL.