<?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: What is the MySQL root-password from Hive-Install? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219005#M69531</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;@Warius Unnlauf&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;/STRONG&gt;mysql&amp;gt; SELECT User, Host, Password FROM mysql.user;
+------+------------+-------------------------------------------+
| User | Host       | Password                                  |
+------+------------+-------------------------------------------+
| root | localhost  |                                           |
| root | blueprint2 |                                           |
| root | 127.0.0.1  |                                           |
| root | ::1        |                                           |
| hive | %          | *4DF1D66463C18D44E3B001A8FB1BBFBEA13E27FC |
+------+------------+-------------------------------------------+&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Reference:  &lt;/STRONG&gt;   &lt;A href="https://www.rosehosting.com/blog/mysql-show-users/" target="_blank"&gt;https://www.rosehosting.com/blog/mysql-show-users/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 21:52:34 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-10-12T21:52:34Z</dc:date>
    <item>
      <title>What is the MySQL root-password from Hive-Install?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219000#M69526</link>
      <description>&lt;P&gt;
	Hello,&lt;/P&gt;&lt;P&gt;
	for &lt;A href="https://stackoverflow.com/q/23040084"&gt;this fix&lt;/A&gt; I need root access to the mysql-instance on the node where Hive is running.&lt;BR /&gt;But I noticed, that I set it nowhere during the installation-process?! Not during ambari-installation and not during the HDP-installation. I just set the Hive-DB-password (!= root-password).&lt;BR /&gt;When I try to execute the suggested command in the SO-question above (mysql -u root -p -hlocalhost) the Hive-password doesn't work. Also the default password 'admin' doesn't work. &lt;/P&gt;&lt;P&gt;So, is there a trick, whats the password? Or did I do a mistake? I'd like to have full access and control over my cluster and the included components ;D&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Warius&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 20:43:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219000#M69526</guid>
      <dc:creator>m_u</dc:creator>
      <dc:date>2017-10-12T20:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is the MySQL root-password from Hive-Install?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219001#M69527</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;@Warius Unnlauf&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Without entering any password when it prompts for "Enter Password:" just press ENTER key&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[root@blueprint2 ~]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 29
Server version: 5.6.37 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql&amp;gt; show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| hive               |
| mysql              |
| performance_schema |
+--------------------+
4 rows in set (0.02 sec)

&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 20:48:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219001#M69527</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-12T20:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is the MySQL root-password from Hive-Install?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219002#M69528</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;@Warius Unnlauf&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After login in to the DB just in case you want to change the "root" user password then you might want to run:&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt;  UPDATE user SET Password=PASSWORD('what_ever_you_want') where USER='root'; 
&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 20:50:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219002#M69528</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-12T20:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is the MySQL root-password from Hive-Install?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219003#M69529</link>
      <description>&lt;P&gt;Oh, sorry, forgot to mention, I also tried this, and the same error as on the other attempts appears:&lt;/P&gt;&lt;PRE&gt;[usr@HOST ~]$ mysql -u root -p -hlocalhost
Enter password: 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Oct 2017 20:58:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219003#M69529</guid>
      <dc:creator>m_u</dc:creator>
      <dc:date>2017-10-12T20:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is the MySQL root-password from Hive-Install?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219004#M69530</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;@Warius Unnlauf&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please do not specify the &lt;STRONG&gt;"-hlocalhost"   (Or try using the actual hostname instead of "localhost')&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please run the mysql command from the host where the hive (mysql DB) is installed.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[root@blueprint2 ~]# mysql -u root -p
Enter password: &amp;lt;Just Press Enter Key empty password&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Else you will have to gran the  *.*  privilege to the 'root'@'localhost'  &lt;/P&gt;&lt;P&gt;Please try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step1).&lt;/STRONG&gt;  Edit the following file "/etc/my.cnf" and then set the &lt;STRONG&gt;"skip-grant-tables"&lt;/STRONG&gt; as following:&lt;/P&gt;&lt;PRE&gt;[mysqld]
skip-grant-tables
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
.
.
&amp;lt;br&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;2. Restart the mysql.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# service mysqld restar&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;3. Now login to mysql:&lt;/STRONG&gt; &lt;/P&gt;&lt;PRE&gt;[root@blueprint2 ~]# mysql -urootmysql &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;4. Now reset the password.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; UPDATE user SET Password=PASSWORD('redhat') where USER='root'; 
Query OK, 7 rows affected (0.02 sec)
Rows matched: 7  Changed: 7  Warnings: 0

mysql&amp;gt; FLUSH PRIVILEGES; 
Query OK, 0 rows affected (0.00 sec)&amp;lt;strong&amp;gt;&amp;lt;/strong&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 21:48:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219004#M69530</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-12T21:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is the MySQL root-password from Hive-Install?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219005#M69531</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29249/mu.html" nodeid="29249"&gt;@Warius Unnlauf&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;/STRONG&gt;mysql&amp;gt; SELECT User, Host, Password FROM mysql.user;
+------+------------+-------------------------------------------+
| User | Host       | Password                                  |
+------+------------+-------------------------------------------+
| root | localhost  |                                           |
| root | blueprint2 |                                           |
| root | 127.0.0.1  |                                           |
| root | ::1        |                                           |
| hive | %          | *4DF1D66463C18D44E3B001A8FB1BBFBEA13E27FC |
+------+------------+-------------------------------------------+&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Reference:  &lt;/STRONG&gt;   &lt;A href="https://www.rosehosting.com/blog/mysql-show-users/" target="_blank"&gt;https://www.rosehosting.com/blog/mysql-show-users/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 21:52:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-MySQL-root-password-from-Hive-Install/m-p/219005#M69531</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-12T21:52:34Z</dc:date>
    </item>
  </channel>
</rss>

