i am using JDBC and Hibernate for Connecting to database.
so i am firing select Query to database using JDBC, but when i fire insert Query using Hibernate it gives an ex
You have exhausted the number of connections you have configured in you DB for root. I am guessing you are using MySQL (just a hunch based on the userid). There are several fixes you can try:
root
You probably need to check your code to make sure you are closing connections appropriately. Your code could be orphaning connections over time.
It would be important to note that outside of a dev environment, you really should not be doing any app coding as root
. The root
user has too many privileges, and you open yourself to all sorts of nasty problems from a security aspect.