# Unable to get mysql performance in packetbeat

**URL:** <https://discuss.elastic.co/t/unable-to-get-mysql-performance-in-packetbeat/1450>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [May 28, 2015, 9:17am UTC](https://discuss.elastic.co/t/unable-to-get-mysql-performance-in-packetbeat/1450 "2015-05-28T09:17:07Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Akhilesh\_Anb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akhilesh_anb/32/4343_2.png) [@Akhilesh\_Anb](https://discuss.elastic.co/u/Akhilesh_Anb)\
**Post date:** [May 29, 2015, 11:05am UTC](https://discuss.elastic.co/t/unable-to-get-mysql-performance-in-packetbeat/1450/22 "2015-05-29T11:05:52Z")

</div>

As you said if im starting mysql as shown below im able to see everything..

> mysql -h 127.0.0.1 -u root

If im giving normally

> mysql -u root

Its not working.

Likewise... how to start PGSQL to get the performance?

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [May 29, 2015, 11:54am UTC](https://discuss.elastic.co/t/unable-to-get-mysql-performance-in-packetbeat/1450/23 "2015-05-29T11:54:21Z")

</div>

Yes, that's because without `-h 127..0.0.1` it's using the Unix socket, and we don't support sniffing from that. We need it to use the network (even localhost).

---

<div class="post-metadata">

**Author:** ![Akhilesh\_Anb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akhilesh_anb/32/4343_2.png) [@Akhilesh\_Anb](https://discuss.elastic.co/u/Akhilesh_Anb)\
**Post date:** [May 29, 2015, 2:33pm UTC](https://discuss.elastic.co/t/unable-to-get-mysql-performance-in-packetbeat/1450/24 "2015-05-29T14:33:20Z")

</div>

How to start PGSQL ... if im starting normally im unable to view performance in packetbeat... Tell me how to run it..

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [May 29, 2015, 3:04pm UTC](https://discuss.elastic.co/t/unable-to-get-mysql-performance-in-packetbeat/1450/25 "2015-05-29T15:04:11Z")

</div>

First you need to make sure you have `ssl = false` in your `postgressql.conf`. Then restart postgres and start the CLI like this:

```
 psql -h 127.0.0.1 -U psql
```

---

<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:** [July 5, 2017, 9:59pm UTC](https://discuss.elastic.co/t/unable-to-get-mysql-performance-in-packetbeat/1450/26 "2017-07-05T21:59:16Z")

</div>

Closed on July 5, 2017, 9:59pm UTC



[Previous page](https://discuss.elastic.co/t/unable-to-get-mysql-performance-in-packetbeat/1450.md?page=1)
