Migrating content from one database to another database
The content migration tool is an interesting feature that Liferay provides as an out-of the-box core implementation. As you know, Liferay gives administrators a choice to select one of the database engines, such as MySQL, PostgreSQL, Oracle, and so on. It allows users to change the database engine without losing data.
Let's assume that our Liferay instance uses the PostgreSQL database, and we want to change it to MySQL engine.
Getting ready…
In order to migrate our content, we need to create a new MySQL database. To achieve it log in to your database:
mysql -u {USER} -p
Then, create a new database using the following command:
CREATE DATABASE lportal DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
How to do it…
This functionality is available out-of-the-box. Moreover, it doesn't require developer support. All migration processes can be done with the help of the GUI. To migrate data, follows these steps:
Log in as an administrator...