cboard连接mysql库_Cboard开源BI商业智能的新秀,从数据库到图表生成,简单!

本文档详细介绍了如何配置CBoard以连接MySQL数据库,包括系统需求、数据库安装、项目构建、配置文件修改、Maven打包、Tomcat部署以及登录CBoard进行测试。确保JDK、MySQL、Maven和Tomcat等环境准备就绪,通过修改配置文件连接MySQL,然后使用Maven打包并部署到Tomcat,最后通过默认的用户名和密码登录CBoard进行数据可视化。
摘要由CSDN通过智能技术生成

此文根据CBoard官方文档整理

系统需求

请确认您的安装环境

JDK version above 1.8

MySQL(注意:如果为8.0版本,请将项目的pom.xml中的驱动mysql-connector-java版本设置为5.1.47。否则连接数据库会报错。)

Maven

Tomcat

Phantomjs (for export dashbaord)

Mail Servier

How to build project

1 Download or git clone project git clone https://github.com/yzhang921/CBoard.git

2 Install metadata of CBoard (take MySQL database as example)

2.1 Install demo metadata and sample foodmart db

Enter into the path of these two files

Use MySQL Command Line tool login and execute source cboard_demo.sql source foodmart.sql

After success completed, check if cboard_demo2 and foodmart2 databases have been created

2.2 You can alternative choose start from a blank settingmysql -- CREATE DATEBASE cboard; Execute ddl to create metadata table: sql/mysql/mysql.sql

3 Modify metadata connection properties file according to your db environment

CBoard/src/main/resources/config.properties

validationQuery=SELECT 1

jdbc_url=jdbc:mysql://localhost:3306/cboard # set to your metadata db connection url, if you are using demo db, change db name to cboard_demo2

jdbc_username=root # change to the username/password of your db

jdbc_password=111111

# Service configuration

dataprovider.resultLimit=300000

admin_user_id=1

phantomjs_path=D:/phantomjs-2.1.1-windows/bin/phantomjs.exe # change to the install path of your phantomjs

web_port=8026 #

web_context= # web context name of your app, can be blank for ROOT deploy

# configuration of Mail service

mail.smtp.host=127.0.0.1

mail.smtp.port=8825

mail.smtp.from=test@test.com

#mail.smtp.username=test@test.com

#mail.smtp.password=111111

#mail.smtp.ssl.checkserveridentity=false

# Cache Properties if you wanna use redis as cache layer

cache.redis.hostName=127.0.0.1

cache.redis.port=6379

4 Comile and package project with Maven cd root path of CBoard

# Install SQLServer JDBC Driver into your local respository

mvn install:install-file -Dfile=lib/sqljdbc4-4.0.jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0 -Dpackaging=jar

mvn clean package

5 Deploy war to Tomcat application

Copy CBoard/target/cboard.war to webapp folder of Tomcat and rename cboard.war would be better to change name to ROOT.war

Start up Tomcat

6 登录 CBoard

http://_yourserverip_:8080

默认的登录用户名和密码: admin/root123

7 For Demo DB user, check and test the source of foodmart7b5baa739119578da77638df31114797.png

语言设置:main/webapp/org/cboard/settings.js

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值