# How to connect the remote MYSQL database

**URL:** <https://discuss.elastic.co/t/how-to-connect-the-remote-mysql-database/96243>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [August 8, 2017, 10:21am UTC](https://discuss.elastic.co/t/how-to-connect-the-remote-mysql-database/96243 "2017-08-08T10:21:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 8, 2017, 10:21am UTC](https://discuss.elastic.co/t/how-to-connect-the-remote-mysql-database/96243/1 "2017-08-08T10:21:58Z")

</div>

I have a Ubuntu server and MySQL Cloud server.i have packetbeat installed in Ubuntu server, and i need to monitor MySQL Cloud server (3306-port).  
In kibana i cant see any data.  
1- Where should i use the (MySQL-host / ip) in the packetbeat.yml file which is installed in the Ubuntu server?  
2- how to monitor MySQL remotely?

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 8, 2017, 12:27pm UTC](https://discuss.elastic.co/t/how-to-connect-the-remote-mysql-database/96243/2 "2017-08-08T12:27:04Z")

</div>

any idea?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [August 8, 2017, 1:20pm UTC](https://discuss.elastic.co/t/how-to-connect-the-remote-mysql-database/96243/3 "2017-08-08T13:20:35Z")

</div>

packetbeat operates on unencrypted network packets. For this you will either have to install packetbeat on the machine MYSQL is running, or use port-forwarding or network taps, to forward the network packets to packetbeat. If encryption is used, packetbeat will not be able to analyze the traffic though.

For getting metrics/stats from mysql, one can use metricbeat. Metricbeat can actively connect to a remote mysql instance and query mysql for common metrics.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 5, 2017, 1:20pm UTC](https://discuss.elastic.co/t/how-to-connect-the-remote-mysql-database/96243/4 "2017-09-05T13:20:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
