3.2 SonarQube - MySQL Server configuration
MySQL Setup:
MySQL Server Community Edition for Windows can be installed using the MySQL Installer that installs and updates all MySQL products on Windows or the standalone .msi installation package.
Important
Installing MySQL Workbench using an Installer package requires either Administrator or Power User privileges.
Requirements for Windows
Microsoft .NET Framework 4.5
Microsoft Visual C++ 2015 Redistributable Package
Note The 2013 version was changed to 2015 with MySQL Workbench 6.3.9.
Note: MySQL Workbench 6.1 supports earlier versions of Windows, including Vista.
Installation Using MySQL Installer
The general MySQL Installer download is available at http://dev.mysql.com/downloads/windows/installer/. The MySQL Installer application can install, upgrade, and manage most MySQL products, including MySQL Workbench.
This is the Recommended Approach
Managing all of your MySQL products, including Workbench, with MySQL Installer is the recommended approach. It handles all requirements and prerequisites, configurations, and upgrades.
When executing MySQL Installer, you may choose MySQL Workbench as one of the products to install. It is selected by default, and essentially executes the standalone Installer Package described below.
Installation Using the Installer Package
The standalone download is available at http://dev.mysql.com/downloads/workbench/.
MySQL Server Community can be installed using the Windows Installer (.msi
) installation package. The MSI package bears the namemysql-server-community
-version
-winarch
.msi, whereversion
_indicates the MySQL Workbench version number, andarch
_the build architecture (winx64).
To install MySQL Workbench, right-click the MSI file and select the Install item from the pop-up menu, or double-click the file.
In theSetup Typewindow you may choose a
Complete
orCustom
installation. To use all features of MySQL Workbench choose theDeveloper(default)
option.Unless you choose otherwise, MySQL is installed in
C:\%PROGRAMFILES%
\MySQL\MySQL Serveredition_type
\, where_%PROGRAMFILES%
_is the default directory for programs for your locale. The%PROGRAMFILES%
directory is defined asC:\Program Files\
on most systems.
Once the installation is done configure the setup by changing the root password and remember for future purpose.
After the installation open the "MySQL Workbench 6.3 CE" and connect to the default instance by entering the root password.
Open a new query editor and run the query.
Navigate to the earlier download location of SonarQube. Right click the zip file and choose unblock.
Unzip the file and copy the binaries to the folder C:\SonarQube\
Open the SonarQube properties file sonar.properties from the following location C:\SonarQube\sonarqube-6.7.1\conf.
In the sonar.properties file look for ‘#—– MySQL Server. This needs to have the connection string for the sql server database you intend to use.
Update the section by adding the connection string of the database
Save and Start the Server to get the sonarqube service running.
Last updated
Was this helpful?