views:

35

answers:

1

I am using MySQL c++ connector (1.0.5) , recently I moved get_driver_instance() and connect() methods to secondary thread then I am getting below error.

Error in my_thread_global_end(): 1 threads didn't exit

After googling I found that mysql thread isn't exiting. Is there a method in c++ wrapper to do cleanup?

A: 

After googling I came to know that mysql_thread_end() will solve the problem. Any way I was linking against libmysqlclient.a so included mysql.h file and called mysql_thread_end before exiting secondary thread, now the problem is solved.

Devara Gudda