<?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: mysql default password first time sandbox login in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190702#M152791</link>
    <description>&lt;P&gt;As i agree with Eric it should work or also you can enforce by the below settings using the link and let me know if you need any help on this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://saisrinivase.wordpress.com/category/mysql/" target="_blank"&gt;https://saisrinivase.wordpress.com/category/mysql/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 01:45:09 GMT</pubDate>
    <dc:creator>saisrinivase</dc:creator>
    <dc:date>2018-07-12T01:45:09Z</dc:date>
    <item>
      <title>mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190700#M152789</link>
      <description>&lt;P&gt;Hi I am a newbie to HDP, I downloaded the HDP and run with virtualbox. However, when i tried to access the mysql database for the first time after ssh into the sandbox VM, I encountered the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@sandbox-hdp ~]# mysql -uroot&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Originally I thought that maybe mysql does require any password for the first time login, therefore i tried to use "hadoop" as the password as suggested in some of the posts i googled, but again the access was denied:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@sandbox-hdp ~]# mysql -uroot -phadoop&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mysql: [Warning] Using a password on the command line interface can be insecure.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have also followed this post &lt;A href="https://community.hortonworks.com/questions/86949/error-1045-28000-access-denied-for-user-root.html" target="_blank"&gt;https://community.hortonworks.com/questions/86949/error-1045-28000-access-denied-for-user-root.html&lt;/A&gt; but the suggested solution was not working for me:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;# mysql -u root -p&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Enter password: hadoop&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I even tries other means such as &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@sandbox-hdp ~]# mysql -root -h 0.0.0.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using the latest HDP sandbox which is version 2.6.5&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@sandbox-hdp ~]# sandbox-version&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;== Sandbox Information ==&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Platform: hdp-security&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Build date: 06-18-2018&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ambari version: 2.6.2.0-155&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hadoop version: Hadoop 2.7.3.2.6.5.0-292&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OS: CentOS Linux release 7.5.1804&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:27:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190700#M152789</guid>
      <dc:creator>xs0040</dc:creator>
      <dc:date>2022-09-16T13:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190701#M152790</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/86244/xs0040.html" nodeid="86244"&gt;@Xianshun Chen&lt;/A&gt; I tried on my sandbox and this password works for me.&lt;/P&gt;&lt;PRE&gt;[root@sandbox-hdp ~]# mysql -uroot -phadoop -hlocalhost
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.6.39 MySQL Community Server (GPL)
&lt;/PRE&gt;&lt;P&gt;You can try the following link to reset mysql password.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.howtoforge.com/setting-changing-resetting-mysql-root-passwords" target="_blank"&gt;https://www.howtoforge.com/setting-changing-resetting-mysql-root-passwords&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 01:01:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190701#M152790</guid>
      <dc:creator>elemesilva</dc:creator>
      <dc:date>2018-07-12T01:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190702#M152791</link>
      <description>&lt;P&gt;As i agree with Eric it should work or also you can enforce by the below settings using the link and let me know if you need any help on this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://saisrinivase.wordpress.com/category/mysql/" target="_blank"&gt;https://saisrinivase.wordpress.com/category/mysql/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 01:45:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190702#M152791</guid>
      <dc:creator>saisrinivase</dc:creator>
      <dc:date>2018-07-12T01:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190703#M152792</link>
      <description>&lt;P&gt;Many thanks for the suggestions from Eric and Sai, I think there may be something wrong with my mysql root access as Eric's suggestion not working for me either:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@sandbox-hdp ~]# mysql -uroot -phadoop -hlocalhost&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mysql: [Warning] Using a password on the command line interface can be insecure.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I ended up reset the password using the following approach&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;systemctl stop mysqld&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;systemctl set-environment MYSQLD_OPTS="--skip-grant-tables --skip-networking"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;systemctl start mysqld&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mysql -uroot &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Once in the mysql, run:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLUSH PRVILEGES;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE PASSWORD FOR root@'localhost'=PASSWORD('hadoop')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLUSH PRIVILEGES;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUIT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Once log out from mysql, clear the environment MYSQLD_OPTS and restart mysql server&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;systemctl unset-environment MYSQLD_OPTS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;systemctl restart mysqld&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mysql -uroot -phadoop&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 23:17:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190703#M152792</guid>
      <dc:creator>xs0040</dc:creator>
      <dc:date>2018-07-12T23:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190704#M152793</link>
      <description>&lt;P&gt;My hive services wont start after running these commands.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 05:38:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190704#M152793</guid>
      <dc:creator>sahilmodak5</dc:creator>
      <dc:date>2018-08-17T05:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190705#M152794</link>
      <description>&lt;P&gt;Hello @Xianshun Chen, thanks a lot. Your answer helped me. May I ask you how did you found your solution? &lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 13:41:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190705#M152794</guid>
      <dc:creator>reaid_1980</dc:creator>
      <dc:date>2018-08-19T13:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190706#M152795</link>
      <description>&lt;P&gt;mysql -u root -p &lt;BR /&gt;hortonworks1&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 18:38:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190706#M152795</guid>
      <dc:creator>sagar_girish</dc:creator>
      <dc:date>2018-08-29T18:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190707#M152796</link>
      <description>&lt;P&gt;After mysql root password changed, hive metastore service not works. Before password change it worked. When I start the service i get below error&lt;/P&gt;&lt;P&gt;SQLException : SQL state: 28000 &lt;BR /&gt;java.sql.SQLException: Access denied for user 'root'@'sandbox-hdp.hortonworks.com' (using password: YES) ErrorCode: 1045&lt;BR /&gt;2018-08-30 17:13:22,761  [E] Can't establish db connection.&lt;/P&gt;,&lt;P&gt;After reset mysql root password , hive metastore and ranger admin not works (before changing MySQL root password the hive service was working). Below error shows&lt;/P&gt;&lt;P&gt;SQLException : SQL state: 28000 &lt;BR /&gt;java.sql.SQLException: Access denied for user 'root'@'sandbox-hdp.hortonworks.com' (using password: YES) ErrorCode: 1045&lt;BR /&gt;2018-08-30 17:13:22,761  [E] Can't establish db connection.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 21:23:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190707#M152796</guid>
      <dc:creator>w3help</dc:creator>
      <dc:date>2018-08-31T21:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190708#M152797</link>
      <description>&lt;P&gt;Hello @&lt;A href="https://community.hortonworks.com/users/93234/w3help.html"&gt;Ram B&lt;/A&gt;, you need to set your new password in the hive metastore also. &lt;/P&gt;&lt;P&gt;You can make it through Ambari UI: Login to the Ambari Dashboard --&amp;gt; click on hive --&amp;gt; Configs --&amp;gt; then Advanced --&amp;gt;under Hive Metastore section --&amp;gt; change the password (your root new password) --&amp;gt; then restart All. Now hive should be working with no problems.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 22:40:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190708#M152797</guid>
      <dc:creator>reaid_1980</dc:creator>
      <dc:date>2018-08-31T22:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190709#M152798</link>
      <description>&lt;P&gt;Thanks Sagar and Ryad.&lt;/P&gt;&lt;P&gt;I changed mysql root password to 'hortonworks1', then hive metastore started working. After that i can change ambari dashboard-&amp;gt;hive-&amp;gt;configs-&amp;gt;advanced password change (before that it was grayed out cannot change the password). Another point when i change the password in ambari-&amp;gt;hive, i need to change root password in mysql login also.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 09:02:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/190709#M152798</guid>
      <dc:creator>w3help</dc:creator>
      <dc:date>2018-09-01T09:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/279681#M208399</link>
      <description>&lt;P&gt;My solution was a similar:&lt;/P&gt;&lt;P&gt;in command line as a root&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;systemctl stop mysqld
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables --skip-networking"
systemctl start mysqld
mysql -u root&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in mysql shell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;use mysql;
update user set authentication_string=PASSWORD("hadoop") where User='root';
flush privileges;
quit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After this change, I got trouble hive and ranger due to connection error to MySQL. Then&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to change hive and ranger mysql database root user password from Ambari.&lt;/P&gt;&lt;P&gt;It is ok now.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 15:23:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/279681#M208399</guid>
      <dc:creator>erkansirin78</dc:creator>
      <dc:date>2019-10-08T15:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: mysql default password first time sandbox login</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/316001#M226673</link>
      <description>&lt;P&gt;This solution works well for me. I hope such a basic information exists somewhere in MySql setup in Cloudera documentation to help new users to do not have to waist time to look around.&lt;/P&gt;&lt;P&gt;The password Saga provided is correct. "&lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;hortonworks1&lt;/STRONG&gt;&lt;/FONT&gt;"&lt;/P&gt;&lt;P&gt;Thanks Sagar for helping newbie like us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the screen shot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TDStephanieSoft_0-1620419905940.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31136iFF4D596E5D5404E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TDStephanieSoft_0-1620419905940.png" alt="TDStephanieSoft_0-1620419905940.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 20:40:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-default-password-first-time-sandbox-login/m-p/316001#M226673</guid>
      <dc:creator>TDStephanieSoft</dc:creator>
      <dc:date>2021-05-07T20:40:47Z</dc:date>
    </item>
  </channel>
</rss>

