Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jdbc.default.driverClassName=com.mysql.jdbc.Driver
- jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
- jdbc.default.username=<insert your mysql username>
- jdbc.default.password=<insert your mysql password>
- mysql -u root -p <<< "create database lportal character set utf8;"
- mysql -u root -p < /path-to-the-script/create-mysql.sql
- jdbc.default.driverClassName=com.mysql.jdbc.Driver
- jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
- jdbc.default.username=
- jdbc.default.password=
- 1)path--->home/karthik/Desktop/LiferaySetup/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/classes---->create an empty doc with name as portal-ext.properties
- paste the below code:
- jdbc.default.driverClassName=com.mysql.jdbc.Driver
- jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
- jdbc.default.username=root
- jdbc.default.password=root
- 2)path--->/home/karthik/Desktop/LiferaySetup/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/conf/Catalina/localhost-->Enter the below code inside ROOT.xml
- <Context path="" crossContext="true">
- <!-- JAAS -->
- <!--<Realm
- className="org.apache.catalina.realm.JAASRealm"
- appName="PortalRealm"
- userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal"
- roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole"
- />-->
- <!--
- Uncomment the following to disable persistent sessions across reboots.
- -->
- <!--<Manager pathname="" />-->
- <!--
- Uncomment the following to not use sessions. See the property
- "session.disabled" in portal.properties.
- -->
- <!--<Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" />-->
- <Resource
- name="jdbc/LiferayPool"
- auth="Container"
- type="javax.sql.DataSource"
- driverClassName="com.mysql.jdbc.Driver"
- url="jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8"
- username="root"
- password="root"
- maxActive="20"
- />
- </Context>
- If you follow the above 2 statements you can create easily
- jdbc.default.driverClassName=com.mysql.jdbc.Driver
- jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
- jdbc.default.username=root
- jdbc.default.password=root
- 14:23:20,480 INFO [localhost-startStop-1][DialectDetector:71] Determine dialect for MySQL 5
- 14:23:20,574 INFO [localhost-startStop-1][DialectDetector:136] Found dialect org.hibernate.dialect.MySQLDialect
Advertisement
Add Comment
Please, Sign In to add comment