Date Created: 2010-06-20 08:08:11 -0500 (Sun, 20 Jun 2010) Date Created: 2016-08-08 19:58:27 -0500 (Mon, 08 Aug 2016)

Setting Up a SonarQube Host

Overview

 

Server Setup

This section covers setting up a SonarQube server from scratch. Ubuntu is used as the operating system and MySQL is used as the database.  

  1. Install Ubuntu
  2. Enable ssh
    sudo apt-get install openssh-server                        
                        
  3. Install a Database (MySQL)
    sudo apt-get install mysql-server
                        
  4. Add a User to the Database

    As the root user of the MySQL database, setup the user that SonarQube uses.

    CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
    CREATE USER 'sonarqube' IDENTIFIED BY 'pa55w0rd';
    GRANT ALL ON sonar.* TO 'sonarqube'@'%' IDENTIFIED BY 'pa55w0rd';
    GRANT ALL ON sonar.* TO 'sonarqube'@'localhost' IDENTIFIED BY 'pa55w0rd';
    FLUSH PRIVILEGES;                        
                        

    SQL credit goes to this Gist.

Resources

 


Date Created: 2017-08-03 06:27:52 -0500 (Thu, 03 Aug 2017)




back    |    top
 
Date Created: 2010-06-20 08:08:33 -0500 (Sun, 20 Jun 2010)