Book Image

Liferay 6.x Portal Enterprise Intranets Cookbook

Book Image

Liferay 6.x Portal Enterprise Intranets Cookbook

Overview of this book

Table of Contents (19 chapters)
Liferay 6.x Portal Enterprise Intranets Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. Log in as an administrator...