Created 02-18-2016 05:41 PM
I am testing my ranger db connection on my sandbox it fails. I have not changed any password. using all defaults.
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 477, in <module> CheckHost().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute method(env) File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 212, in actionexecute raise Fail(error_message) resource_management.core.exceptions.Fail: Check db_connection_check was unsuccessful. Exit code: 1. Message: ERROR: Unable to connect to the DB. Please check DB connection properties. java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
Created 02-18-2016 05:46 PM
This will fix it
grant all privileges on *.* to 'root'@'localhost' identified by 'password' with grant option;
Created 02-18-2016 05:46 PM
This will fix it
grant all privileges on *.* to 'root'@'localhost' identified by 'password' with grant option;
Created 02-18-2016 05:55 PM
I found it the problem, it was the password. I issues the statement you gave and it still failed. Then I went into ambari and changed the password to password and it worked. thank you