Home > Database > Mysql Tutorial > mondrian导入demo数据到mysql_MySQL

mondrian导入demo数据到mysql_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:41:25
Original
893 people have browsed it

bitsCN.com
mondrian导入demo数据到mysql 很久没动过mondrian了,很多步骤都忘记了,同时老版本和新版本的步骤,配置有些不同,而这次需要使用mondrian3.3,因此我把安装到使用的各个过程记录一下,以备查询:环境:windows下:版本:mondrian-3.3.0 1.首先解压mondrian-3.3.0/lib/mondrian.war然后运行以下命令,注意:   红色部分的为运行所需要的jar包,必须用绝对路径,注意修改对应jar包的版本号。 -inputFile=FoodMartCreateData.sql  ,因为我运行是在mondrian-3.3.0/demo目录下,而FoodMartCreateData.sql就在这个目录下,因此这里的路径就是相对路径,如果你在别的目录目录下运行如下命令,需要修改该sql文件路径名称。 java -cp "J;/software/mondrian-3.3.0/lib/mondrian/olap4j.jar;J;/software/mondrian-3.3.0/lib/mondrian/mondrian.jar;J;/software/mondrian-3.3.0/lib/mondrian/log4j-1.2.8.jar;J;/software/mondrian-3.3.0/lib/mondrian/commons-logging-1.0.4.jar;J;/software/mondrian-3.3.0/lib/mondrian/eigenbase-xom.jar;J;/software/mondrian-3.3.0/lib/mondrian/eigenbase-resgen.jar;J;/software/mondrian-3.3.0/lib/mondrian/eigenbase-properties.jar;J;/software/mondrian-3.3.0/lib/mondrian/mysql-connector-java-5.1.19.jar"    mondrian.test.loader.MondrianFoodMartLoader -verbose -tables -data -indexes -jdbcDrivers=com.mysql.jdbc.Driver -inputFile=FoodMartCreateData.sql -outputJdbcURL="jdbc:mysql://192.168.0.187:3306/foodmart?user=root&password=111111" 上述命令运行需要1-2分钟,耐心等待完成后查看foodmart数据库可以看到很多表,说明导入成功,下一步就是设置mondrian datasource指向该mysql。  作者 四个圈 bitsCN.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template