Skip to content

Instantly share code, notes, and snippets.

@ffbit
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ffbit/55d4d402dac6e54d70ac to your computer and use it in GitHub Desktop.
Save ffbit/55d4d402dac6e54d70ac to your computer and use it in GitHub Desktop.
MySQL create user SQL
create database sonarqube character set 'utf8';
create user 'sonarqube'@'localhost' identified by 'password';
grant all privileges on sonarqube.* TO 'sonarqube'@'%';
flush privileges;
<properties>
...
<sonar.jdbc.url>jdbc:mysql://localhost:3306/sonarqube</sonar.jdbc.url>
<sonar.jdbc.username>sonarqube</sonar.jdbc.username>
<sonar.jdbc.password>password</sonar.jdbc.password>
<sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>
</properties>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>2.6</version>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment