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

时间:2018-07-27 01:25:22   收藏:0   阅读:1697

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;

   都设置一个密码

 

技术分享图片

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!