Liferay 7 MariaDB database configuration

MariaDb database driver is included in the liferay 7 distribution. No additional download is necessary.

You can follow the steps below:

  1. create an empty database in MariaDB instance (e.g. lportal) with username “username” and password “password”
  2. in the [Liferay_home] folder create a file named portal-ext.properties with the followings lines:
  3. jdbc.default.driverClassName=org.mariadb.jdbc.Driver
    jdbc.default.url=jdbc:mariadb://localhost/liferay7ga3?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
    jdbc.default.username=username
    jdbc.default.password=password

Start liferay and see what has  been created in the database 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *