java - Display the Connection ID of mysql -


i want add sniplet of code can print connection id of connection made mysql using getconnection(). going used monitoring number of connections made @ time.

connection interface , implemented multiple database vendors. entirely sure whether can such value, depends whether mysql allowing or not.

regarding problem of monitoring number of connections made @ time, based on requirement can go synchronized counter maintain number of times connection made/closed/open. hope helps.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -