MySQL version: 5.6.25 (64-bit Linux). Ant version: 1.9.5. Sonarqube version: 5.1.1. I'm getting permission issues when I run my ant script. Things like:
org.sonar.runner.impl.RunnerException: Unable to execute Sonar ... .. caused by java.lang.IllegalStateException: Fail to connect to database .... ... caused by org.apache.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (access denied for user 'sonarqube'@'localhost' (using password: YES))
After spending yesterday afternoon of googling and trying to log into MySQL as root and calling GRANT ALL on etc etc for my sonarqube user and things like that I'm completely at a loss what to try next. I came across this post: http://sonarqube.15.x6.nabble.com/com-mysql-jdbc-Driver-is-not-found-td5012081.html, specifically this bit:
"Sonar uses its build-in driver which lies in /home/jenkins/sonar-3.5.1/extensions/jdbc-driver/mysql/ The file mysql-connector-java-5.1.18.jar exists, is readable and contains the Driver.class file."
I do not have a connector jar file in this location (in fact the only folder I have in the extensions directory is 'oracle'). Should I have one? In terms of the sonarqube documentation I don't have to configure MySQL to use anything extra drivers from elsewhere.
Many thanks in advance. I could paste in parts of my Ant script if required, but this does look more like a database permissions issue. Cheers, Tom