**环境准备 **
内置数据库
Sonar安装成功后,默认内置H2数据库,用于记录单次的扫描结果,对同一个project重复扫码,会覆盖之前的扫描记录,所以H2 数据库只应用于测试,不可以用于生产环境,那如果你是想玩玩,不想长期扫描你的项目,可以不必配置数据库
自定义数据库:
- Oracle
- SQL Server(只支持SQL Server 2014 以及 SQL Server2016)
- PostgreSQL
- MYSQL 版本限制: 8.0>MYSQL>=5.6
(注官方说明,从Sonar7.9版本,不再支持Mysql),以下链接
**End of Life of MySQL Support : SonarQube 7.9 and future versions do not support MySQL.
Please migrate to a supported database. Get more details at **
https://community.sonarsource.com/t/end-of-life-of-mysql-support
https://jira.sonarsource.com/browse/SONAR-11963
安装步骤
1.安装sonarqube:
安装的是windows 7.4 community