Sonarqube-mysql cookbook fails creating user for mysql server

============================================================================

====
Error executing action create on resource ‘mysql_database_user[sonar]’
============================================================================

Mysql2::Error
-------------
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.s

ock’ (2)

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/database/libraries/provider_database_mysql_user.rb

:221:in new' /var/chef/cache/cookbooks/database/libraries/provider_database_mysql_user.rb :221:intest_client’
/var/chef/cache/cookbooks/database/libraries/provider_database_mysql_user.rb
:37:in `block in class:MysqlUser’\

Where should I make changes so that cookbook can access the server and create a user

If you believe there are issues with this cookbook, I would suggest that you open an issue with the cookbook maintainer at https://github.com/pghalliday-cookbooks/sonarqube-mysql

Its fixed. Error was in mysql/helpers.rb