> Are there any good reference / example code to show how to connect MySQL
> database, what is the whole procedule to get query response (data in
> buffer) using multithreads and cache?
Read the user manual:
At the very least, read chapters 1 through 3, plus 7.
Then, read README-examples.txt in the MySQL++ distribution, along with
the README for your platform and/or tool chain. Then play with the
This should answer most of your questions.