Liferay 7.2 - MySQL connection

Liferay 7.2 - MySQL connection

To connect Liferay to MySQL DB - add the following lines to portal-setup-wizard.properties file:
jdbc.default.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost:3306/my_liferay_db?serverTimezone=Europe/Istanbul&useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=my_root_password
Replace my_liferay_db with your database name and my_root_password with your root's MySQL password.

Hints

  • Use com.mysql.cj.jdbc.Driver MySQL driver, as old one will not work 7.2;
  • serverTimezone parameter should be specified (as in sample above);
  • you may use the same connection string for MySQL connection in IntelliJ IDEA: 

Comments

Popular posts from this blog

Liferay Search Container Example

Liferay DXP - max upload file size

Liferay Keycloak integration