Hi,
Trying to run the mysql++ cpool example but it says I need to enable threads.
I have Ver 5.0.51a-3 (Debian) installed from apt-repository.
I tried re-installing from source with:
./configure --enable-thread-safe-client
This doesn't seem to work either as the program reports the same thing !
How can I enable threads ?
Thanks,
User Profile
Collapse
-
Help - How to enable threads
-
Thanks, I'll read up on the connection pools -
I don't find any reference to pconnection anywhere. Is it a MySQL object ?...Leave a comment:
-
How to keep a connection alive
Hi,
I'm wanting to start a database connection at the start of an app and keep it open for all methods and classes that I'm #including in my project.
First I went about it by creating the connection in the Main source file outside of any class declarations and then declaring it external in other source files.
...Code:// Main cpp file #include <mysql++> mysql::Connection * conn;
No activity results to display
Show More
Leave a comment: