Academic Work Personal
|
Liferay /
Switching from HSQLDB to MySQL
EnvironmentI installed the following version of Liferay: How to switch from HSQLDB to MySQL?I found a very good document that explains everything: http://www.scribd.com/doc/26729208/Step-By-Step-Install-Guide-Liferay-Portal-on-Linux-v1-0 . Here I sum up the steps for future reference. Setting up MySQLYou can run this command to secure your MySQL installation: # /usr/bin/mysql_secure_installation Log in to MySQL and create the database that will be used by Liferay + create a user too who can access the DB: $ mysql -u root –p mysql> CREATE DATABASE lportal CHARACTER SET utf8; mysql> GRANT ALL ON lportal.* TO 'lpuser'@'localhost' \ ->IDENTIFIED BY 'lpass' WITH GRANT OPTION; mysql> GRANT ALL ON lportal.* TO 'lpuser'@'localhost.localdomain' \ ->IDENTIFIED BY 'lpass' WITH GRANT OPTION; mysql> FLUSH PRIVILEGES; mysql> QUIT; Verify if the DB mysql> use lportal Database chaged mysql> show tbales; Empty set (0.00 sec) mysql> quit; OK, MySQL is ready now. The next step is to tell Liferay to use it. Configuring LiferayNow we must tell Liferay to use MySQL instead of HSQLDB. By default, HSQLDB is used. This is configured in the file # # Hypersonic # jdbc.default.driverClassName=org.hsqldb.jdbcDriver jdbc.default.url=jdbc:hsqldb:${liferay.home}/data/hsql/lportal jdbc.default.username=sa jdbc.default.password= Create the file # # MySQL # jdbc.default.driverClassName=com.mysql.jdbc.Driver jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false jdbc.default.username=lpuser jdbc.default.password=lpass Restart Tomcat. The values in At the end visit If you comment out the MySQL lines in TroubleshootingAt the very end, when I visited http://localhost:8080/c/portal/logout After that it worked fine. Links
|
anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows Blogs and Dev. * Ubuntu Incident Places Debrecen | France | Hungary | Montreal | Nancy Notes Hobby Projects * Jabba's Codes Quick Links [ edit ] |