<?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: how to access mysql in hadoop VM from host machine? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-access-mysql-in-hadoop-VM-from-host-machine/m-p/138734#M101363</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/4700/inamrehman05.html" nodeid="4700"&gt;@Inam Ur Rehman&lt;/A&gt; &lt;/P&gt;&lt;P&gt;After logging in to the mysql you can switch to the desired  database schema using&lt;STRONG&gt; "mysql&amp;gt; use $SCHEMA_NAME;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: &lt;/STRONG&gt;Shows how to use "ranger" db schema.&lt;/P&gt;&lt;PRE&gt;# mysql -u root -p
Enter password: hadoop

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3126
Server version: 5.6.33 MySQL Community Server (GPL)

Copyright (c) 2000, 2016, 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 |
| EmpDB              |
| hive               |
| mysql              |
| performance_schema |
| ranger             |
+--------------------+
6 rows in set (0.01 sec)

mysql&amp;gt; use ranger;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

mysql&amp;gt; show tables;
+--------------------------------+
| Tables_in_ranger               |
+--------------------------------+
| vx_trx_log                     |
| x_access_type_def              |
| x_access_type_def_grants       |
| x_asset                        |
| x_audit_map                    |
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2017 14:43:47 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-03-06T14:43:47Z</dc:date>
  </channel>
</rss>

