pentaho5.0.1将数据库移植成mysql
Pentaho 内置数据是 hsql. 数据库。那我们如何换掉移植成 mysql ? 思想: 移植的条件: 1. 首先要有一个 mysql 数据。 2. 将 pentaho 的启动配置连接到 mysql 上。 我现在做一个将 pentaho5.0 数据库移植的例子。我以 win7 系统为例子 1. 首先在 biserver-c
Pentaho内置数据是hsql.数据库。那我们如何换掉移植成mysql?
思想:
移植的条件:
1.首先要有一个mysql数据。
2.将pentaho的启动配置连接到mysql上。
我现在做一个将pentaho5.0数据库移植的例子。我以win7系统为例子
1. 首先在biserver-ce\data\mysql5文件夹下将里面3个sql文件,在mysql下面运行。只要是pentaho5的解压就是3个文件。所以名字就不说了。
步骤是:登陆mysql –u –p
将sql文件导入:Source 加文件路径
2. 然后就是将pentaho 的启动配置连接到mysql。
所以一共修改6个xml文件。
biserver-ce/pentaho-solutions/system/applicationContext-spring-security-jdbc.xml
biserver-ce/pentaho-solutions/system/applicationContext-spring-security-hibernate.properties
biserver-ce/pentaho-solutions/system/hibernate/hibernate-settings.xml
biserver-ce/pentaho-solutions/system/simple-jndi/jdbc.properties
biserver-ce/tomcat/webapps/pentaho/META-INF/context.xml
biserver-ce/tomcat/conf/Catalina/localhost/pentaho.xml
配置文件1
biserver-ce/pentaho-solutions/system/applicationContext-spring-security-jdbc.xml
修改如下(红色部分位修改过的):
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
value="jdbc:mysql://localhost:3306/hibernate" />
配置文件2
biserver-ce/pentaho-solutions/system/applicationContext-spring-security-hibernate.properties
修改如下(红色部分位修改过的):
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/hibernate
jdbc.username=hibuser
jdbc.password=password
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
配置文件3
biserver-ce/pentaho-solutions/system/hibernate/hibernate-settings.xml
修改如下(红色部分位修改过的):
配置文件4
biserver-ce/pentaho-solutions/system/simple-jndi/jdbc.properties
修改如下(红色部分位修改过的):
SampleData/type=javax.sql.Datasource
SampleData/driver=com.mysql.jdbc.Driver
SampleData/url=jdbc:mysql://localhost:3306/sampledata
SampleData/user=pentaho_user
SampleData/password=password
Hibernate/type=javax.sql.DataSource
Hibernate/driver=com.mysql.jdbc.Driver
Hibernate/url= jdbc:mysql://localhost:3306/hibernate
Hibernate/user=hibuser
Hibernate/password=password
Quartz/type=javax.sql.DataSource
Quartz/driver=com.mysql.jdbc.Driver
Quartz/url= jdbc:mysql://localhost:3306/quartz
Quartz/user=pentaho_user
Quartz/password=password
Shark/type=javax.sql.DataSource
Shark/driver=com.mysql.jdbc.Driver
Shark/url=jdbc:mysql://localhost:3306/shark
Shark/user=sa
Shark/password=
SampleDataAdmin/type=javax.sql.DataSource
SampleDataAdmin/driver=com.mysql.jdbc.Driver
SampleDataAdmin/url=jdbc:mysql://localhost:3306/sampledata
SampleDataAdmin/user=pentaho_admin
SampleDataAdmin/password=password
配置文件5
biserver-ce/tomcat/webapps/pentaho/META-INF/context.xml
修改如下(红色部分位修改过的):
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="select 1" />
factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5"
maxWait="10000" username=" pentaho_user" password=" password "
driverClassName="com.mysql.jdbc.Driver"
url=" jdbc:mysql://localhost:3306/quartz"
validationQuery="select 1"/>
配置文件6
biserver-ce/tomcat/conf/Catalina/localhost/pentaho.xml
修改如下(红色部分位修改过的):
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="select 1" />
factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5"
maxWait="10000" username=" pentaho_user" password=" password "
driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/quartz"
validationQuery="select 1"/>
这样一个数据库就一直成功了。
然后启动pentaho平台。在浏览器输入:localhost:8080/pentaho就会进去像第一节的页面就说明一直成功。

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

MySQL和phpMyAdmin是強大的數據庫管理工具。 1)MySQL用於創建數據庫和表、執行DML和SQL查詢。 2)phpMyAdmin提供直觀界面進行數據庫管理、表結構管理、數據操作和用戶權限管理。

Oracle不僅是數據庫公司,還是雲計算和ERP系統的領導者。 1.Oracle提供從數據庫到雲服務和ERP系統的全面解決方案。 2.OracleCloud挑戰AWS和Azure,提供IaaS、PaaS和SaaS服務。 3.Oracle的ERP系統如E-BusinessSuite和FusionApplications幫助企業優化運營。

在MySQL中,外鍵的作用是建立表與表之間的關係,確保數據的一致性和完整性。外鍵通過引用完整性檢查和級聯操作維護數據的有效性,使用時需注意性能優化和避免常見錯誤。

MySQL和MariaDB的主要區別在於性能、功能和許可證:1.MySQL由Oracle開發,MariaDB是其分支。 2.MariaDB在高負載環境中性能可能更好。 3.MariaDB提供了更多的存儲引擎和功能。 4.MySQL採用雙重許可證,MariaDB完全開源。選擇時應考慮現有基礎設施、性能需求、功能需求和許可證成本。

SQL是一種用於管理關係數據庫的標準語言,而MySQL是一個使用SQL的數據庫管理系統。 SQL定義了與數據庫交互的方式,包括CRUD操作,而MySQL實現了SQL標準並提供了額外的功能,如存儲過程和触發器。

Redis是一种内存数据结构存储系统,主要用作数据库、缓存和消息代理。它的核心特点包括单线程模型、I/O多路复用、持久化机制、复制与集群功能。Redis在实际应用中常用于缓存、会话存储和消息队列,通过选择合适的数据结构、使用管道和事务、以及进行监控和调优,可以显著提升其性能。

安全地處理JSON中的函數和正則表達式在前端開發中,經常需要將JavaScript...

MySQL和phpMyAdmin可以通過以下步驟進行有效管理:1.創建和刪除數據庫:在phpMyAdmin中點擊幾下即可完成。 2.管理表:可以創建表、修改結構、添加索引。 3.數據操作:支持插入、更新、刪除數據和執行SQL查詢。 4.導入導出數據:支持SQL、CSV、XML等格式。 5.優化和監控:使用OPTIMIZETABLE命令優化表,並利用查詢分析器和監控工具解決性能問題。
