In my Java app, I want to query the MySQL status statistics. I’m adding some simple monitoring (mostly writing alerts when certain settings reach certain thresholds).
In any case, I can’t get it working using standard JDBC code. I want something like this:
ResultSet s = DBUtil.executeQuery("SHOW STATUS LIKE '%conn%'");
But this isn’t working from what I see in the debugger. Any solutions?
Thanks for the link to the documentation. It helped clear up some confusion.
For the record, here’s how I navigated the ResultSet properly to find the values I wanted…