mysql -u root -p
SHOW GLOBAL VARIABLES LIKE 'storage_engine’;
CREATE USER 'sonar'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE sonar;
GRANT ALL PRIVILEGES ON sonar.* TO 'sonar'@'localhost';
sudo vi /opt/sonarqube/conf/sonar.prop erties
#uncomment the below lines
sonar.jdbc.username=sonar
sonar.jdbc.password=password
sonar.jdbc.url=jdbc:mysql://lo calhost:3306/sonar?useUnic ode=true&characterEncoding= utf8&rewriteBatchedStatements= true&useConfigs=maxPerformance
now start the server
sh /opt/sonarqube/bin/linux-x86-6 4/sonar.sh start
for any issues, look at logs at
tail -f /opt/sonarqube/logs/sonar.log
No comments:
Post a Comment