Multiple connections with mysql

Hello I created a .h file for mysql connections. In my example file, I created an array of my class and made connection with the database for each subscript of the class object one by one. Then I checked if the connection in the previous subscripts are active or not, I found all the previous connection are disconnected.

I want to establish multiple connection with database at a time. How should I do this.? please suggest.
use multithreading.

For each new connection create new thread. You should also create some scheduler and use semaphores to make sure data will not get corrupted.
Topic archived. No new replies allowed.