ambari一直报错,连不上数据库

匿名 (未验证) 提交于 2019-12-02 22:56:40

26 Jul 2018 21:19:00,696 ERROR [main] DBAccessorImpl:109 - Error while creating database accessor
java.sql.SQLException: Access denied for user ‘ambari‘@‘node5(主机名)‘ (using password: YES)

use mysql;

select * from user order by `User`

  1. GRANT ALL PRIVILEGES ON *.* TO ‘ambari‘@‘%‘;
  2. GRANT ALL PRIVILEGES ON *.* TO ‘ambari‘@‘localhost‘;
  3. GRANT ALL PRIVILEGES ON *.* TO ‘ambari‘@‘YOUR_AMBARI_HOSTNMAE‘;
  4. GRANT ALL PRIVILEGES ON *.* TO ‘ambari‘@‘10.166.2.206‘;
  5. FLUSH PRIVILEGES;

原文:https://www.cnblogs.com/yaoyao66123/p/9374963.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!