How to close mysql connections?
Posted: Tue Nov 22, 2016 8:38 am
For example,I insert data into mysql database with multithread.
In each thread,I call
This will create some connection to connect the database for insert operation,of cause.
But, these connection never been closed until the application shutdown.
That make me a trouble because the connection has a max limit.
Is there had function to close the connection?
In each thread,I call
.qx::dao::insert()
This will create some connection to connect the database for insert operation,of cause.
But, these connection never been closed until the application shutdown.
That make me a trouble because the connection has a max limit.
Is there had function to close the connection?