Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Georgie Howard
moving dev to production issues?
April 19, 2012 1:17 AM
Answer

Georgie Howard

Rank: New Member

Posts: 3

Join Date: April 19, 2012

Recent Posts

Hi all,

Hope someone can help me,

I have been working on this problem for a few day but can not solve it.

I have developed a portal system on my development machine, and need to place it on a hosted server, but at first i am testing how easy it is to move the installion across onto a spare laptop.

Attempt 1:
I have install Liferay (same version) on the laptop and install mySQL database.
i have followed the backup instruction but still can not get it to work : http://www.liferay.com/community/wiki/-/wiki/Main/Back+Up+Liferay

Attempt 2:
Installed Liferay
Created a new database in utf8, but when i go the setup wizard, it will not allow me to change the default database? : http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/using-liferay-s-setup-wizard

I need to be able to do this so i can move it to a Linux box later this week.

Thanks in advance

Georgie
Ravi Kumar Gupta
RE: moving dev to production issues?
April 19, 2012 1:52 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

Hi,
What is that you are getting on the screen, can you please show.

I hope you are taking care of this
Once you have your database created, create a user which can do anything to the database, including create and drop tables. It's important that this user has complete rights over the Liferay database, because Liferay manages its own tables. Once you have your database and the credentials for this user, you can continue.
Jelmer Kuperus
RE: moving dev to production issues?
April 21, 2012 2:41 PM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

just copy the portal-setup-wizard.properties from your local development machine, or even easier, just copy your complete liferay folder including data dir

Dump your database like this

mysqldump -uroot -pyourpassword yourdatabasename > my.dump

Import your database like this

create database yourdatabasename default character set utf8;
grant all on yourdatabasename.* to yourliferayuser@localhost identified by 'yourliferayuserpassword';

mysql -uyourliferayuser -pyourliferayuserpassword < my.dump
Hitoshi Ozawa
RE: moving dev to production issues?
April 21, 2012 5:49 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

I usually just turn the setup wizard off because it really creates havoc to the system.

Just set the following property in the portal-ext.properties file.
setup.wizard.enabled=false