1.单击tools,创建数据库链接
2.通过schema workbenche 编写schema xml 文件
3.编写mdx语句判断schema文件是否正确
4.在pentaho管理控制台平台添加相应的数据源(如果没有找到相应的jdbc驱动,请将驱动拷至管理员控制台administration-console/jdbc)
5.在pentaho用户控制台平台添加相应的数据源驱动(其中自带mysql驱动),其他拷至/biserver-ce/tomcat/common/lib下面
6.单击publish按钮,输入publish password(此密码在pentaho-solutions/system/publish_config.xml),
在输入用户名和密码(在biserver-ce/tomcat/webapps/pentaho/mantleLogin/loginsettings.properties)。
7.选择你要将xml文件放在pentaho-solutions哪边,或者重新创建一个目录,然后配置数据源的名称(既刚才在pentaho管理控制台配置)
发布成功以后
在biserver-ce/pentaho-solutions/system/olap/datasources.xml目录下发现你刚才配置的数据源
例如: <Catalog name="product">
<DataSourceInfo>Provider=mondrian;DataSource=mysql;EnableXmla=False</DataSourceInfo>
<Definition>solution:/test/mysql.xml</Definition>
</Catalog>