<?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/138737#M101366</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;Your latest query is not very clear to me. Can you please elaborate more.&lt;/P&gt;&lt;P&gt;If you want to access the DB schema of a remote mysql DB in your local mysql then one option will be to export the DB dump  of the remote DB and then import the DB dump to your local machine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: importing DB dump:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;mysql -u ambari -pbigdata ambari &amp;lt; ambari_mydb_current.sql&lt;/PRE&gt;&lt;P&gt;
Here assuming that the DB username is "ambari" and password is "bigdata" and the database name is 'ambari" which may be different in your case.
&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: Exporting DB dump:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;mysqldump ambari &amp;gt; /tmp/mydir/ambari_mydb_current.sql&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 18:24:49 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-03-09T18:24:49Z</dc:date>
  </channel>
</rss>

