欢迎来到天天文库
浏览记录
ID:10023378
大小:550.23 KB
页数:8页
时间:2018-05-21
《将pentaho的资源库迁移至mysql中》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、将Pentaho的资源库迁移至MySQL中1.版本说明:ØMySQL数据库版本:5.7.3(mysql-installer-community-5.7.3.0-m13.2063434697.msi)ØPentaho版本:5.1.0.0(biserver-ce-5.1.0.0-752.zip)2.安装MySQL数据库,配置账户(例如:用户名root,密码root)3.启动pentaho解压biserver-ce-5.1.0.0-752.zip,双击biserver-ce-5.1.0.0-752biserver-cestart-
2、pentaho.bat,启动pentaho平台,查看登录是否正常:http://localhost:8080/pentaho4.创建数据库在MySQL中执行biserver-ce-5.1.0.0-752biserver-cedatamysql5目录下的3个脚本:Øcreate_repository_mysql.sqlØcreate_quartz_mysql.sqlØcreate_jcr_mysql.sql5.修改pentaho配置文件ØapplicationContext-spring-security-jdbc.prop
3、erties打开biserver-ce-5.1.0.0-752biserver-cepentaho-solutionssystem目录下的:applicationContext-spring-security-jdbc.properties(红色字体是修改的配置项)datasource.driver.classname=com.mysql.jdbc.Driverdatasource.url=jdbc:mysql://localhost:3306/hibernatedatasource.username=rootdatas
4、ource.password=rootdatasource.validation.query=SELECT1ØapplicationContext-spring-security-hibernate.properties打开biserver-ce-5.1.0.0-752biserver-cepentaho-solutionssystem目录下的:applicationContext-spring-security-hibernate.properties,修改为下面的内容:jdbc.driver=com.mysql.jd
5、bc.Driverjdbc.url=jdbc:mysql://localhost:3306/hibernatejdbc.username=hibuserjdbc.password=passwordhibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialectØhibernate-settings.xml打开biserver-ce-5.1.0.0-752biserver-cepentaho-solutionssystemhibernate目录下的:hibernate-
6、settings.xml,修改标签system/hibernate/mysql5.hibernate.cfg.xmlØcontext.xml打开biserver-ce-5.1.0.0-752biserver-cetomcatwebappspentahoMETA-INF目录下的:context.xml,修改红色字体的内容7、DataSource"factory="org.apache.commons.dbcp.BasicDataSourceFactory"maxActive="20"maxIdle="5"maxWait="10000"username="hibuser"password="password"driverClassName="com.mysql.jdbc.Driver"url="jdbc:mysql://localhost:3306/hibernate"validationQuery="select1"/>8、jdbc/Quartz"auth="Container"type="javax.sql.DataSource"factory="org.apache.commons.dbcp.BasicDataSourceFactory"maxActive="20
7、DataSource"factory="org.apache.commons.dbcp.BasicDataSourceFactory"maxActive="20"maxIdle="5"maxWait="10000"username="hibuser"password="password"driverClassName="com.mysql.jdbc.Driver"url="jdbc:mysql://localhost:3306/hibernate"validationQuery="select1"/>8、jdbc/Quartz"auth="Container"type="javax.sql.DataSource"factory="org.apache.commons.dbcp.BasicDataSourceFactory"maxActive="20
8、jdbc/Quartz"auth="Container"type="javax.sql.DataSource"factory="org.apache.commons.dbcp.BasicDataSourceFactory"maxActive="20
此文档下载收益归作者所有