Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to check the number of connections to MySQL DB

843859Jul 27 2007 — edited Aug 1 2007
Hi,

Is there some way to check the number of applications connected to a mysql database?

I have two different Java applications that will be using the same instance of MySQL.
My requirement is that, I want to close the MySQL instance while closing the Java application.
But before doing so, I want to make sure the other application is not connected to it.
Is there some way I can achieve this?

Your suggestions will be of great help.

Thanks,
Sandeep
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2007
Added on Jul 27 2007
2 comments
126 views