Guest User

Untitled

a guest
Mar 13th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. jdbc.default.driverClassName=com.mysql.jdbc.Driver
  2. jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
  3. jdbc.default.username=<insert your mysql username>
  4. jdbc.default.password=<insert your mysql password>
  5.  
  6. mysql -u root -p <<< "create database lportal character set utf8;"
  7.  
  8. mysql -u root -p < /path-to-the-script/create-mysql.sql
  9.  
  10. jdbc.default.driverClassName=com.mysql.jdbc.Driver
  11. jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
  12. jdbc.default.username=
  13. jdbc.default.password=
  14.  
  15. 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
  16. paste the below code:
  17. jdbc.default.driverClassName=com.mysql.jdbc.Driver
  18. jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
  19. jdbc.default.username=root
  20. jdbc.default.password=root
  21. 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
  22. <Context path="" crossContext="true">
  23.  
  24. <!-- JAAS -->
  25.  
  26. <!--<Realm
  27. className="org.apache.catalina.realm.JAASRealm"
  28. appName="PortalRealm"
  29. userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal"
  30. roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole"
  31. />-->
  32.  
  33. <!--
  34. Uncomment the following to disable persistent sessions across reboots.
  35. -->
  36.  
  37. <!--<Manager pathname="" />-->
  38.  
  39. <!--
  40. Uncomment the following to not use sessions. See the property
  41. "session.disabled" in portal.properties.
  42. -->
  43.  
  44. <!--<Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" />-->
  45. <Resource
  46. name="jdbc/LiferayPool"
  47. auth="Container"
  48. type="javax.sql.DataSource"
  49. driverClassName="com.mysql.jdbc.Driver"
  50. url="jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8"
  51. username="root"
  52. password="root"
  53. maxActive="20"
  54. />
  55.  
  56. </Context>
  57. If you follow the above 2 statements you can create easily
  58.  
  59. jdbc.default.driverClassName=com.mysql.jdbc.Driver
  60. jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
  61. jdbc.default.username=root
  62. jdbc.default.password=root
  63.  
  64. 14:23:20,480 INFO [localhost-startStop-1][DialectDetector:71] Determine dialect for MySQL 5
  65. 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