pentaho配置详解,mysql版(biserver-ce-4.5.0-stable.zip)
(2012-07-16 16:39:44)
BIServer移植到mysql
1、下载biserver-ce-4.5.0-stable.zip
file:///C:/Users/MUHE/Downloads/biserver-ce-4.5.0-stable.zip
2、解压到E:\BI\pentaho
3、转到该路径下:E:\BI\pentaho\biserver-ce\pentaho-solutions\system
A、将applicationContext-spring-security-hibernate.properties文件的内容由:
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/hibernate
jdbc.username=hibuser
jdbc.password=root
hibernate.dialect=org.hibernate.dialect.MySQLDialect
改成:
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/hibernate
jdbc.username=root
jdbc.password=root
hibernate.dialect=org.hibernate.dialect.MySQLDialect
B、将applicationContext-spring-security-jdbc.xml中的:
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
value="jdbc:hsqldb:hsql://localhost:9001/hibernate" />
改成:
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
value="jdbc:mysql://localhost:3306/hibernate" />
C、将--》进入hibernate目录:将mysql5.hibernate.cfg.xml中的:
hibuser
password
改成:
root
root
D、将hibernate-settings.xml中的:
system/hibernate/hsql.hibernate.cfg.xml
改成:
system/hibernate/mysql5.hibernate.cfg.xml
E、找到E:\BI\pentaho\biserver-ce\tomcat\webapps\pentaho\WEB-INF下:web.xml
找到:
solution-path
将我们之前的DB配置的solution设置进来:
solution-path
E:\BI\pentaho\biserver-ce\pentaho-solutions
F、找到E:\BI\pentaho\biserver-ce\tomcat\webapps\pentaho\META-INF下context.xml
将内容改为:
factory="org.apache.commons.dbcp.BasicDataSourceFactory"maxActive="20" maxIdle="5"
maxWait="10000" username="root" password="root"
driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/hibernate"
validationQuery="select 1" />
factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20"maxIdle="5"
maxWait="10000" username="root" password="root"
driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/quartz"
validationQuery="select 1"/>
G、找到:E:\BI\pentaho\biserver-ce\pentaho-solutions\bi-developers\datasources下的HQL_Datasource_MySQL.cfg.xml
将其中的:
hibuser
password
改为:
root
root
4、配置环境变量:
CATALINA_OPTS= Dsun.rmi.dgc.server.gcInterval=3600000
PENTAHO_JAVA_HOME= C:\Program Files\Java\jdk1.6.0_31
5、导入SQL
找到E:\BI\pentaho\biserver-ce\data\mysql5文件下的四个文件,
进入mysql控制台,导入sql命令:顺序如下:
source E:\BI\pentaho\biserver-ce\data\mysql5\create_repository_mysql.sql
source E:\BI\pentaho\biserver-ce\data\mysql5\create_quartz_mysql.sql
source E:\BI\pentaho\biserver-ce\data\mysql5\load_sample_users_mysql.sql
source E:\BI\pentaho\biserver-ce\data\mysql5\migration.sql
ok
现在已经导入完数据库了,可以点击
配置完毕。
运行:start-pentaho.bat启动程序即可