<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Access denied for user 'ambari'@localhost (using password: YES) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182355#M70778</link>
    <description>&lt;P&gt;when i type without password  i get access to MySQL (this is weird bacause i wrote a password at setup of Ambari):  &lt;/P&gt;&lt;PRE&gt;# mysql -u ambari&lt;/PRE&gt;&lt;P&gt;This is what i get:&lt;/P&gt;&lt;P&gt;+----------------- | User             | Password                                  | host                    | +----------------------&lt;/P&gt;&lt;P&gt;| root             | *76BE106726BEDB650DBACA0B576C7 | localhost &lt;/P&gt;&lt;P&gt;| root             |                                           | slxxxxxxxxxxxx.xxxx.sxxx |&lt;/P&gt;&lt;P&gt;
| root             |                                           | 127.0.0.1               |&lt;/P&gt;&lt;P&gt;
| root             |                                           | ::1                     |&lt;/P&gt;&lt;P&gt;
| Adm_replic       | *53598BE3DB17445045 | localhost               |&lt;/P&gt;&lt;P&gt;
| CO_MUS00SPV_SELE | *F1B83C64FA87D87108077B666A5 | %                       |&lt;/P&gt;&lt;P&gt;
| root             | *76BE10672EF6D33A0B576C7 | %                       | &lt;/P&gt;&lt;P&gt;| CO_ZUS10MYS_SYS  | *8FFFE041802516F235DDE3A4506E | localhost               |&lt;/P&gt;&lt;P&gt;....................................&lt;/P&gt;&lt;P&gt;..........................&lt;/P&gt;&lt;P&gt;
| ambari           | *C33A05FE652CA69F0DE7FA785D3916 | %                       |&lt;/P&gt;&lt;P&gt;
| hive             | *5269CDF94758ACD11C110A254DAE | %                       |&lt;/P&gt;&lt;P&gt;
| hive             | *99A15A0B5385DF649D48344E0 | slxxxxxxxxxxxx.xxxx.sxxx |&lt;/P&gt;&lt;P&gt;
| oozie            | *C3BE1E212509519234736969 | %                       |&lt;/P&gt;&lt;P&gt;
| ambari           |                                           | localhost               |&lt;/P&gt;&lt;P&gt;
| ambari           |                                           | slxxxxxxxxxxxx.xxxx.sxxx | &lt;/P&gt;&lt;P&gt;+------------------+-------------------------------------------+-------------------------+&lt;/P&gt;&lt;P&gt;i think that ambari has been without password!!!&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 17:28:01 GMT</pubDate>
    <dc:creator>sihi_yassine</dc:creator>
    <dc:date>2017-11-06T17:28:01Z</dc:date>
    <item>
      <title>Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182349#M70772</link>
      <description>&lt;P&gt;I'm traying to install Ambari for my cluster HDP, while when I configured MYSQL to be the database for My Serveur Ambari and than Started Ambari Service i got this erreur:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; ERROR - Unexpected error, database check failed
com.google.inject.CreationException: Guice creation errors:
1) Error injecting constructor, java.lang.RuntimeException: java.sql.SQLException: Access denied for user 'ambari'@'10.166.2.206' (using password: YES)
  at org.apache.ambari.server.orm.DBAccessorImpl.&amp;lt;init&amp;gt;(DBAccessorImpl.java:83)
  at org.apache.ambari.server.orm.DBAccessorImpl.class(DBAccessorImpl.java:71)
  while locating org.apache.ambari.server.orm.DBAccessorImpl
  while locating org.apache.ambari.server.orm.DBAccessor
    for field at org.apache.ambari.server.orm.dao.DaoUtils.dbAccessor(DaoUtils.java:36)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can someone explaine what wrong with My Ambari server Please&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 16:40:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182349#M70772</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2017-11-06T16:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182350#M70773</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;@yassine sihi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As we see the IP Address in your error which usually is the Hostname.&lt;/P&gt;&lt;PRE&gt;Access denied for user 'ambari'@'10.166.2.206' (using password: YES) &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Hence please check if your AmbariServer is running on FQDN (hostname -f)  or On IP Address.   &lt;/P&gt;&lt;PRE&gt;# hostname -f
# cat /etc/hosts&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Regrading the Database permission issue please make sure that your run the following commands on your MySQL DB&lt;/P&gt;&lt;PRE&gt;GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'%';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'localhost';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'YOUR_AMBARI_HOSTNMAE';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'10.166.2.206';
FLUSH PRIVILEGES;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Then restart Ambari Server.&lt;BR /&gt;&lt;BR /&gt;For more details please refer to:   &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-administration/content/using_ambari_with_mysql.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-administration/content/using_ambari_with_mysql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Reference Thread:  &lt;A href="https://community.hortonworks.com/questions/144043/error-1045-28000-access-denied-for-user-ambari.html" target="_blank"&gt;https://community.hortonworks.com/questions/144043/error-1045-28000-access-denied-for-user-ambari.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 16:42:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182350#M70773</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-06T16:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182351#M70774</link>
      <description>&lt;PRE&gt;My AmbariServer is running on FQDN:
      # hostname -f
      slzusd1mys04.sres.stech


when i execute those commands on my MySQL DB i get :

      ERROR 1045 (28000): Access denied for user 'ambari'@'localhost' (using password: NO)  
&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Nov 2017 16:51:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182351#M70774</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2017-11-06T16:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182352#M70775</link>
      <description>&lt;P&gt;My AmbariServer is running on FQDN:&lt;/P&gt;&lt;PRE&gt;# hostname -f
slxxxxxsxxx.sxxx.sxxx&lt;/PRE&gt;&lt;P&gt;when i execute those commands on my MySQL DB i get :&lt;/P&gt;&lt;PRE&gt;ERROR 1045 (28000): Access denied for user 'ambari'@'localhost' (using password: NO)  &lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Nov 2017 16:54:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182352#M70775</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2017-11-06T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182353#M70776</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;@yassine sihi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please login to the MySQL Database  (not necessarily on "ambari" DB)  but you can login to "mysql" DB instead as following:&lt;/P&gt;&lt;P&gt;Login as "root" user.&lt;/P&gt;&lt;PRE&gt;# mysql -u root -p
Enter password: &amp;lt;ENTER_YOUR_DB_ROOT_PASSWORD&amp;gt;

mysql&amp;gt; select User,Password,Host from mysql.user;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Then check if the "ambari" user is present in the output of the above command with 'localhost' permission?&lt;/P&gt;&lt;P&gt;If you are able to login to your MySQL DB with the "root" user then you should be able to run the following queries:&lt;/P&gt;&lt;PRE&gt;    ambari&amp;gt; use mysql;
    GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'%';
    GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'localhost';
    CREATE USER 'ambari'@'standaloneambari.example.com' IDENTIFIED BY 'bigdata';  &amp;lt;---- Replace the host name 
    GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'standaloneambari.example.com';  &amp;lt;---- Replace the host name 
    FLUSH PRIVILEGES;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 17:09:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182353#M70776</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-06T17:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182354#M70777</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;@yassine sihi&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just in case if this is a fresh MySQL setup and you do not know your MySQL "root" user password the please try the following link to update the root user password.:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/141454/what-is-the-mysql-root-password-from-hive-install.html?childToView=141464#comment-141464" target="_blank"&gt;https://community.hortonworks.com/questions/141454/what-is-the-mysql-root-password-from-hive-install.html?childToView=141464#comment-141464&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 17:19:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182354#M70777</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-06T17:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182355#M70778</link>
      <description>&lt;P&gt;when i type without password  i get access to MySQL (this is weird bacause i wrote a password at setup of Ambari):  &lt;/P&gt;&lt;PRE&gt;# mysql -u ambari&lt;/PRE&gt;&lt;P&gt;This is what i get:&lt;/P&gt;&lt;P&gt;+----------------- | User             | Password                                  | host                    | +----------------------&lt;/P&gt;&lt;P&gt;| root             | *76BE106726BEDB650DBACA0B576C7 | localhost &lt;/P&gt;&lt;P&gt;| root             |                                           | slxxxxxxxxxxxx.xxxx.sxxx |&lt;/P&gt;&lt;P&gt;
| root             |                                           | 127.0.0.1               |&lt;/P&gt;&lt;P&gt;
| root             |                                           | ::1                     |&lt;/P&gt;&lt;P&gt;
| Adm_replic       | *53598BE3DB17445045 | localhost               |&lt;/P&gt;&lt;P&gt;
| CO_MUS00SPV_SELE | *F1B83C64FA87D87108077B666A5 | %                       |&lt;/P&gt;&lt;P&gt;
| root             | *76BE10672EF6D33A0B576C7 | %                       | &lt;/P&gt;&lt;P&gt;| CO_ZUS10MYS_SYS  | *8FFFE041802516F235DDE3A4506E | localhost               |&lt;/P&gt;&lt;P&gt;....................................&lt;/P&gt;&lt;P&gt;..........................&lt;/P&gt;&lt;P&gt;
| ambari           | *C33A05FE652CA69F0DE7FA785D3916 | %                       |&lt;/P&gt;&lt;P&gt;
| hive             | *5269CDF94758ACD11C110A254DAE | %                       |&lt;/P&gt;&lt;P&gt;
| hive             | *99A15A0B5385DF649D48344E0 | slxxxxxxxxxxxx.xxxx.sxxx |&lt;/P&gt;&lt;P&gt;
| oozie            | *C3BE1E212509519234736969 | %                       |&lt;/P&gt;&lt;P&gt;
| ambari           |                                           | localhost               |&lt;/P&gt;&lt;P&gt;
| ambari           |                                           | slxxxxxxxxxxxx.xxxx.sxxx | &lt;/P&gt;&lt;P&gt;+------------------+-------------------------------------------+-------------------------+&lt;/P&gt;&lt;P&gt;i think that ambari has been without password!!!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 17:28:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182355#M70778</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2017-11-06T17:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182356#M70779</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;@yassine sihi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can confirm your Ambari Server Database password inside the following file: (By default the password is not Encrypted, Until you explicitly choose to encrypt the passwords)&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# grep 'server.jdbc.user.passwd' /etc/ambari-server/conf/ambari.properties
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat

[root@sandbox ~]# cat /etc/ambari-server/conf/password.dat
bigdata&lt;/PRE&gt;
&lt;BR /&gt;
&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 17:30:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182356#M70779</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-06T17:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182357#M70780</link>
      <description>&lt;P&gt;@Jay Kumar SenSharma&lt;/P&gt;&lt;P&gt;I could access to Mysql by root and ran those commands, i got the following result:&lt;/P&gt;&lt;P&gt;when i try to creat Ambari user i get this erreur:&lt;/P&gt;&lt;PRE&gt;ERROR 1396 (HY000): Operation CREATE USER failed for 'ambari'@'slxxxxxxxx.xxxx.xxx'&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;thanks for your reply!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 17:51:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182357#M70780</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2017-11-06T17:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182358#M70781</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes i can see the password that i have typed beford, it's literally different than 'bigdata', so why i still can login without password??&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 18:16:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182358#M70781</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2017-11-06T18:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182359#M70782</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;@yassine sihi&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It looks like the GRANT for "ambari' user are not properly set inside the DB.&lt;/P&gt;&lt;P&gt;Can you please share the output of the following SQL query from the Database. You can login as "root" user inside the DB and then run the command;&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; select User,Password,Host from mysql.user;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also update the "ambari" suer password using the following command:&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt;  UPDATE user SET Password=PASSWORD('bigdata') where USER='ambari'; 
mysql&amp;gt;  FLUSH PRIVILEGES;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Then  restart Ambari Server.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 18:32:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182359#M70782</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-06T18:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182360#M70783</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418" target="_blank"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ok, This is the output after running UPDATE query:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42461-ex.jpg" style="width: 1005px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19170iC08F8FAECC6FF413/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42461-ex.jpg" alt="42461-ex.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:55:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182360#M70783</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2019-08-18T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182361#M70784</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;@yassine sihi&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the above screenshot the  "password" column for user "ambari" is Empty  where the Host is "10.166.2.206"  which should be set to password.&lt;/P&gt;&lt;PRE&gt; UPDATE user SET Password=PASSWORD('bigdata') where USER='ambari';&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;And then the Grant need to be provided to the user.&lt;/P&gt;&lt;PRE&gt;&amp;lt;br&amp;gt;mysql&amp;gt; use mysql;
mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'localhost'; 
mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'s1xxxxxxxxxxxx';    &amp;lt;--- correct hostname
mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'10.166.2.206'; 
mysql&amp;gt; FLUSH PRIVILEGES;
&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 21:08:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182361#M70784</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-06T21:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182362#M70785</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I don't think that's the issue because i have already done it.&lt;/P&gt;&lt;P&gt;thanks Jay&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 21:28:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182362#M70785</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2017-11-06T21:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182363#M70786</link>
      <description>&lt;P&gt;I think that i found the solution:&lt;/P&gt;&lt;P&gt;when i started the ambari installation, I stupidly change the default password which is bigdata to an other&lt;/P&gt;&lt;P&gt;So when the server goes to start it retrieve the password which is inside /etc/ambari-server/conf/password.dat in order to connect to Mysql which is obviously not the same.&lt;/P&gt;&lt;P&gt;I forced the change of the password in the path: /etc/ambari-server/conf/password.dat and then &lt;STRONG&gt;it works fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 00:08:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182363#M70786</guid>
      <dc:creator>sihi_yassine</dc:creator>
      <dc:date>2017-11-07T00:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access denied for user 'ambari'@localhost (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182364#M70787</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47200/sihiyassine.html" nodeid="47200"&gt;@yassine sihi&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the solution to check the password file first.&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# cat /etc/ambari-server/conf/password.dat
bigdata&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2017 00:20:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-denied-for-user-ambari-localhost-using-password-YES/m-p/182364#M70787</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T00:20:28Z</dc:date>
    </item>
  </channel>
</rss>

