Database Connection Copyright © 2000-2006 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.

Slides:



Advertisements
Similar presentations
UNIVERSITY OF EDUCATION BY H.M.ISHTIAQ RAFIQUE. Domain Name Structure.
Advertisements

1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Struts Portlet Adding an Action Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
REPAIR TABLE Got 147 error table handler 1. Repair Table (All programs) 2. Repair Table (desktop) 3. Manual Repair thru MySQL Query Browser.
Internal staff release only X-Touch V 3.63 Installation Guide for Emis LV & PCS Jayex Technology Limited March 2010.
JSF Portlet Backing Beans and UI Components Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in.
Windows XP System Restore July 22 nd, 2006 CAEUG Meeting.
MySQL Installation Guide. MySQL Downloading MySQL Installer.
CSS Central: Central Management Utility Screen View Samples Next.
RELAIS Installation Monica Scannapieco – Luca Valentino (ISTAT – Software Development Service) Training on the job in Record linkage, Central Statistical.
OpenNebula VM ICOM5016 DATABASE SYSTEMS PROFESSOR: DR. AMIR CHINAEI PREPARED BY: PAUL BARTUS.
Liferay, SSO and LDAP - Integration Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
XMAS installation instructions Windows Version: 1.0 4/22/2008.
Discovering SQL all rights reserved (c) 2010 agilitator.com INSTALLING MySQL 5.1 Community Server.
Getting Started with Web Servers, PHP, and the Eclipse PDT Appendix I DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Introduction to Liferay Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Struts Portlet Database Interaction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
Basic Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JSF Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Setting up in Outlook Express. Select “Tools” from the toolbar menu.
Installing a New Windows Server 2008 Domain Controller in a New Windows Server 2008 R2.
Themes & Layout Tutorial Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Ch 8-3 Working with domains and Active Directory.
E-Commerce LAB#1 Samia alblwi1E-Commerce ( IS412) 2011.
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
SQL HW1 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Installing Active Directory on Windows Server 2008 R2 Installing Active Directory on a fresh Windows Server 2008 R2 machine in a home network. The guide.
Struts Portlet Redirect Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Installing Oracle Database 11gR2 Software on Red Hat Enterprise Linux 5 (RAC)
Once you have contacted me to set up a new account, your computer needs to be configured to dial into.DevlinEx and use our servers for things like .
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Installing and Using Active Directory Written by Marc Zacharko.
Hosted Virtualization Lab Last Update Copyright Kenneth M. Chipps Ph.D.
Basic Setup Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Selenium Web Test Tool Training Discover The Automating Power Of Selenium Author : Girija Prasad Panda Alcatel-Lucent.
LDAP Authentication Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
WSRP Portlets Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Connecting to the eTeacher FTP on Windows 7/Vista eTeacherGroup 2010.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
JSP Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Installing MySQL BCIS 3680 Enterprise Programming.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
MySQL Getting Started BCIS 3680 Enterprise Programming.
What is MySQL? MySQL is a relational database management system (RDBMS) based on SQL (Structured Query Language). First released in January, Many.
PAYware Transact Terminal Interface Manager
Basic Portlet Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
17 Copyright © 2004, Oracle. All rights reserved. Deploying an ADF Application.
Required Tools Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
Connecting to the eTeacher FTP on Win XP eTeacherGroup 2010.
Backup Tables in SQL Server. Backup table method Cape_Codd database is used in this example 1.Righ click the database that contains the table you want.
Settings MySQL Database and JDBC configuration Instructor: Sergey Goldman.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Portal X Watford Boys Grammar School. How To Get To Portal X: In the url tab, where it states learning. to get to “Portal X” you have to Remove Learning.
© 2013 IBM Corporation IBM UrbanCode Deploy v6.0 Support Enablement Training Jenkins plug-in 1 November 2013.
Required Tools Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission from.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
Senerver_Sun | Dept. | SOP for use CSD DL tool V1.2_ CN_SDD2.
SAP Business One 9.0 integration for SAP NetWeaver Installation and Technical Configuration 2013 March.
Wireless Network Access on: Windows 7, Windows 8 and Windows 10
Copyright © Liferay, Inc.
Copyright © Liferay, Inc.
Boeing 787 SCMP Training June 2016
A Practice Solutions Practice Solutions.
How to add Loopback adapter in windows 7
Ch 1 .Installing and configuring SQL Server 2005
Presentation transcript:

Database Connection Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission from Liferay, Inc.

Objectives Liferay Portal Development 1.Set up MySQL 2.Create the Database 3.Populate the Database 4.Configure Tomcat to use the MySQL Database

Install MySQL Double click mysql win32.exe Install MySQL using the default settings At the MySQL.com Sign-up screen, select Skip Sign-up

Install MySQL

Click Finish to run the MySQL Server Instance Configuration Wizard Select Standard Configuration

Install MySQL Select Include Bin Directory in Windows PATH

Enter asdf for the password Retype asdf to confirm the password Select Create an anonymous account On the next screen, click Execute

Connection Error If the Connection Error window pops up, click Skip. This occurs because the data directory was not removed. If you see this screen, you will need to run the Configuration Wizard again.

Create a database called “training” 1.Click Start  Run… 2.Type cmd and press Enter 3.Type mysql 4.Type create database training;

Populate your database 1.Click Start  Run… 2.Type cmd and press Enter 3.Navigate to the C:\Training\liferay\ext\sql\portal directory 4.Type mysql training < portal-mysql.sql

Configure Tomcat to use MySQL 1.Go to C:\Training\liferay\tomcat\conf\Catalina\localhost 2.Open ROOT.xml with Notepad

1.Change the driverClassName from org.hsqldb.jdbcDriver to com.mysql.jdbc.Driver driverClassName=“com.mysql.jdbc.Driver” 2.Change the url from jdbc:mysql:test to url=“jdbc:mysql://localhost/training?useUnicod e=true&characterEncoding=UTF-8” 3.Change the username to root username=“root” 4.Change the password to asdf password=“asdf” Configure Tomcat to use MySQL

Deploy the MySQL Driver 1.Copy mysql.jar from C:\Training\liferay\ext\lib\development to C:\Training\liferay\ext\ext-lib\global 2.Click Start  Run… 3.Type cmd and press Enter 4.Navigate to the C:\training\liferay\ext 5.Type ant deploy 6.Verify that mysql.jar was deployed to C:\Training\liferay\tomcat\common\lib\ext

Congratulations! You’ve just set up the database connection! 1.Set up MySQL 2.Created a database called training 3.Populated the database with the portal-mysql.sql script 4.Configured ROOT.xml to use the MySQL database instead of the Hypersonic database

Revision History Edward Shin8/28/2006Updated for Liferay Mark Wong9/12/2006 Updated MySQL version