Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
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