# Performance\_schema not capturing prepared stements

**URL:** <https://forums.percona.com/t/performance-schema-not-capturing-prepared-stements/5197>\
**Category:** Percona Server for MySQL 5.6\
**Created:** [November 8, 2016, 3:30pm UTC](https://forums.percona.com/t/performance-schema-not-capturing-prepared-stements/5197 "2016-11-08T15:30:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrunreal121](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mrunreal121](https://forums.percona.com/u/mrunreal121)\
**Post date:** [November 8, 2016, 3:30pm UTC](https://forums.percona.com/t/performance-schema-not-capturing-prepared-stements/5197/1 "2016-11-08T15:30:56Z")

</div>

Hi all, we are trying to get an ideal of all the queries we have running against our databases but we can’t see any of the prepared statements that are coming from a jdbc connection. We have everything that I am aware of enabled for performance\_schema. The setup\_consumers table has the following enabled;  
events\_statements\_current, events\_statements\_history, events\_statements\_history\_long, global\_instrumentation, thread\_instrumentation, statements\_digest

If we run a prepared statements on the server or through mysql workbench we are able to pick it.

We are running MySQL Percona 5.6.29-76.2

---

<div class="post-metadata">

**Author:** ![DarkGL](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/darkgl/32/10718_2.png) [@DarkGL](https://forums.percona.com/u/DarkGL)\
**Post date:** [May 23, 2023, 7:07pm UTC](https://forums.percona.com/t/performance-schema-not-capturing-prepared-stements/5197/2 "2023-05-23T19:07:50Z")

</div>

Did you found any way to fix this problem ?
