Mondrian imports demo data to mysql

Source: Internet
Author: User


Mondrian has not moved mondrian since importing demo data to mysql for a long time. Many steps have been forgotten. At the same time, the steps for the old version and the new version are somewhat different. This time, you need to use mondrian3.3, so I will install to use each process to record, for query: Environment: windows: Version: mondrian-3.3.0 1. first unzip the mondrian-3.3.0/lib/mondrian. war and then run the following command. Note: The red part of www.2cto.com is the jar package required for running. The absolute path must be used. Note that you must modify the version number of the corresponding jar package. -InputFile = FoodMartCreateData. SQL, because I am running under the mondrian-3.3.0/demo directory, and FoodMartCreateData. SQL is in this directory, so the path here is relative path. If you run the following command in another directory, You need to modify the path name of the SQL file. Java-cp & quot; J;/software/mondrian-3.3.0/lib/mondrian/olap4j. jar; J;/software/mondrian-3.3.0/lib/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/eigen Base-properties.jar; J;/software/mondrian-3.3.0/lib/mondrian/mysql-connector-java-5.1.19.jar "www.2cto.com 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 "it takes 1-2 minutes to run the preceding command. wait patiently and check the foodmart database to see many tables. This indicates that the import is successful. The next step is to set mondrian datasource to point to the mysql instance. Author's four circles

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.