Configuring a Database¶
By default for demonstration purposes, Liferay DXP/Portal is configured to use an embedded HSQL database. Beyond demonstration purposes, we recommend using a full-featured, supported RDBMS, such as:
MariaDB
MySQL
Oracle
PostgreSQL
Important
The Liferay DXP Compatibility Matrix lists the supported databases and versions.
Configure the database¶
Create a database that uses UTF-8. Here is a MySQL command example:
create database lportal character set utf8;
Set up a database user with full database permissions. If your organization requires the DXP database user to have limited database access, see High Security Database User Practices.
Important
Liferay requires reading from and writing to the database. The Liferay database user must therefore have permissions to read and write data.
Install a JDBC Connector. The DXP bundle includes several open source JDBC connectors in the
/lib/ext
folder. Connectors for proprietary database, like Oracle or DB2 (see the table below), must be downloaded from the vendor.
Proprietary Databases:
Database |
Connector |
Vendor Site |
Notes |
---|---|---|---|
Oracle |
|
The |
|
DB2 |
|
The |
Congratulations! You configured a database for Liferay DXP.
Note
For database configuration details, see the Database Configuration Reference.