title: Sonar MySQL setup
body: <p>I just downloaded Sonar 3.2 and have configured the sonar.properties files to connect to my local MySql database. I have the following setting enabled:</p>
  
  <pre><code>sonar.jdbc.url:   jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8&amp;rewriteBatchedStatements=true
  sonar.jdbc.driverClassName:   com.mysql.jdbc.Driver
  </code></pre>
  
  <p>I am able to start the server without any errors and am able to log into the Sonar interface however when I run 'mvn sonar:sonar' on my maven project I get the following error:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project vrservices: Can not execute Sonar: Fail to connect to database: Cannot load JDBC driver class 'org.h2.Driver' -&gt; [Help 1]
  </code></pre>
  
  <p>I have read a few forums that saying to put the following code in the settings.xml file however this still didn't fix the issue.</p>
  
  <pre><code>  &lt;profile&gt;
        &lt;id&gt;sonar&lt;/id&gt;
        &lt;activation&gt;
            &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
        &lt;/activation&gt;
        &lt;properties&gt;
            &lt;!-- EXAMPLE FOR MYSQL --&gt;
            &lt;sonar.jdbc.url&gt;jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;amp;characterEncoding=utf8&lt;/sonar.jdbc.url&gt;
            &lt;sonar.jdbc.driver&gt;com.mysql.jdbc.Driver&lt;/sonar.jdbc.driver&gt;
            &lt;sonar.jdbc.username&gt;root&lt;/sonar.jdbc.username&gt;
            &lt;sonar.jdbc.password&gt;&lt;/sonar.jdbc.password&gt;
        &lt;/properties&gt;
    &lt;/profile&gt;
  </code></pre>
  
  <p>I was wondering if anyone has come across this issue as well and if so how did you fix it?</p>
  
  <p>Thanks in advance!</p>