<?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: ERROR 1045 (28000): Access denied for user 'mahi'@'localhost' (using password: YES) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186609#M64984</link>
    <description>&lt;P&gt;Check users info in mysql.user.&lt;/P&gt;&lt;P&gt;mysql&amp;gt; select User,Password,Host from mysql.user;&lt;/P&gt;&lt;P&gt;Normally, create user DDL pattern is like this below.&lt;/P&gt;&lt;P&gt;CREATE USER 'peter'@'localhost' IDENTFIED BY 'password';&lt;/P&gt;&lt;P&gt;GRANT ALL PRIGILEGES ON *.* TO 'peter'@'localhost';&lt;/P&gt;&lt;P&gt;CREATE USER 'peter'@'fqdn' IDENTFIED BY 'password';&lt;/P&gt;&lt;P&gt;GRANT ALL PRIGILEGES ON *.* TO 'peter'@'fqdn';&lt;/P&gt;&lt;P&gt;CREATE USER 'peter'@'%' IDENTFIED BY 'password';&lt;/P&gt;&lt;P&gt;GRANT ALL PRIGILEGES ON *.* TO 'peter'@'%';&lt;/P&gt;&lt;P&gt;FLUSH PRIVILEGES;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 11:16:26 GMT</pubDate>
    <dc:creator>MindGlass</dc:creator>
    <dc:date>2017-10-24T11:16:26Z</dc:date>
    <item>
      <title>ERROR 1045 (28000): Access denied for user 'mahi'@'localhost' (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186604#M64979</link>
      <description>&lt;P&gt;I have added one user (mahi) &amp;amp; password is set 'hadoop' for that...also give privileges for that...but still it is not login ...give this error...could anyone give me solution for same.&lt;/P&gt;&lt;P&gt;Create user mahi identified by 'hadoop';&lt;/P&gt;&lt;P&gt;grant all on malpute.* to mahi;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:56:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186604#M64979</guid>
      <dc:creator>malputemahendra</dc:creator>
      <dc:date>2022-09-16T11:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 1045 (28000): Access denied for user 'mahi'@'localhost' (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186605#M64980</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19266/malputemahendra1.html" nodeid="19266"&gt;@Mahendra Malpute
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following error indicates that the database that you are trying to connect using "mahi" credentials is wither not correct or  The Database is not correct.&lt;/P&gt;&lt;PRE&gt;ERROR 1045 (28000): Access denied for user 'mahi'@'localhost' (using password: YES)&lt;/PRE&gt;&lt;P&gt;
.&lt;/P&gt;&lt;P&gt;
Try this:&lt;/P&gt;&lt;PRE&gt;GRANT ALL PRIVILEGES ON *.* TO 'mahi'@'localhost';
GRANT ALL PRIVILEGES ON *.* TO 'mahi'@'%';
GRANT ALL PRIVILEGES ON *.* TO 'mahi'@'&amp;lt;DATABASE_FQDN&amp;gt;';
FLUSH PRIVILEGES;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19266/malputemahendra1.html" nodeid="19266"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 20:36:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186605#M64980</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-15T20:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 1045 (28000): Access denied for user 'mahi'@'localhost' (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186606#M64981</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay S&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;enSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I I have given grant to that user, but still I am getting same error.Also I checked credential is right.&lt;/P&gt;&lt;P&gt;#mysql -u mahi  -p hadoop&lt;/P&gt;&lt;P&gt;Please help me for this issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 22:28:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186606#M64981</guid>
      <dc:creator>malputemahendra</dc:creator>
      <dc:date>2017-07-15T22:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 1045 (28000): Access denied for user 'mahi'@'localhost' (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186607#M64982</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2776/moremahendra23.html" nodeid="2776"&gt;@Mahendra More
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If the user "mahi" does not have access to "mysql" database (Which is the default Database) then you will get the same error when using t he following command.&lt;/P&gt;&lt;PRE&gt;# mysql -u mahi -p hadoop&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You have two options.&lt;/P&gt;&lt;P&gt;1.  Grant "mahi" user to access "mysql" (default Database)&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;2. You should provide database name on which the "mahi" user has access. (If you want to login to any specific database)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# mysql -u mahi -p mahiDatabaseName
Enter password: hadoop
&lt;/PRE&gt;&lt;P&gt;
&lt;A rel="user" href="https://community.cloudera.com/users/2776/moremahendra23.html" nodeid="2776"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 23:32:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186607#M64982</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-15T23:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 1045 (28000): Access denied for user 'mahi'@'localhost' (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186608#M64983</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Finally login from that user without enter password. If enter passpword then still it is giving error.I don't know why this happend in mysql.But anyways . all is done.&lt;/P&gt;&lt;P&gt;# mysql -u mahi&lt;/P&gt;&lt;P&gt;Again thanks for helping.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2017 01:06:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186608#M64983</guid>
      <dc:creator>malputemahendra</dc:creator>
      <dc:date>2017-07-16T01:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 1045 (28000): Access denied for user 'mahi'@'localhost' (using password: YES)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186609#M64984</link>
      <description>&lt;P&gt;Check users info in mysql.user.&lt;/P&gt;&lt;P&gt;mysql&amp;gt; select User,Password,Host from mysql.user;&lt;/P&gt;&lt;P&gt;Normally, create user DDL pattern is like this below.&lt;/P&gt;&lt;P&gt;CREATE USER 'peter'@'localhost' IDENTFIED BY 'password';&lt;/P&gt;&lt;P&gt;GRANT ALL PRIGILEGES ON *.* TO 'peter'@'localhost';&lt;/P&gt;&lt;P&gt;CREATE USER 'peter'@'fqdn' IDENTFIED BY 'password';&lt;/P&gt;&lt;P&gt;GRANT ALL PRIGILEGES ON *.* TO 'peter'@'fqdn';&lt;/P&gt;&lt;P&gt;CREATE USER 'peter'@'%' IDENTFIED BY 'password';&lt;/P&gt;&lt;P&gt;GRANT ALL PRIGILEGES ON *.* TO 'peter'@'%';&lt;/P&gt;&lt;P&gt;FLUSH PRIVILEGES;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:16:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-1045-28000-Access-denied-for-user-mahi-localhost-using/m-p/186609#M64984</guid>
      <dc:creator>MindGlass</dc:creator>
      <dc:date>2017-10-24T11:16:26Z</dc:date>
    </item>
  </channel>
</rss>

