sonar本地搭建

来源:互联网 发布:淘宝影响二次销售规则 编辑:程序博客网 时间:2024/06/05 05:30

1 首先官网下载sonar,目前下载为6.3版本的

2 要求数据库为mysql5.6以及以上,本地安装的为mysql 5.7.17版本



需要先在mysql中建立sonar数据库,之后进行下面数据库的设置


在sonar.properties中修改sonar的配置,

sonar.jdbc.username=root
sonar.jdbc.password=123

#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092
#----- MySQL 5.6 or greater
# Only InnoDB storage engine is supported (not myISAM).
# Only the bundled driver is supported. It can not be changed.
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance


0 0
原创粉丝点击