sonar configuration for mysql failing sonar configuration for mysql failing jenkins jenkins

sonar configuration for mysql failing


The stacktrace details the error:

Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

Doesn't look like the configuration matches your error. Did you try configuration Sonar to use the user root?

I suspect your issue has to do with mySQL user access. Have you tried connecting to the database as the "sonar" user?

Update

The Sonar runner does not use the same configuration file as the Sonar server. Look for a file in the following location:

$SONAR_RUNNER_HOME/conf/sonar-runner.properties