User Profile

Collapse

Profile Sidebar

Collapse
vieraci
vieraci
Last Activity: Mar 21 '08, 01:04 AM
Joined: Mar 13 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vieraci
    started a topic Help - How to enable threads

    Help - How to enable threads

    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,
    See more | Go to post

  • vieraci
    replied to How to keep a connection alive
    Thanks, I'll read up on the connection pools
    See more | Go to post

    Leave a comment:


  • vieraci
    replied to How to keep a connection alive
    I don't find any reference to pconnection anywhere. Is it a MySQL object ?...
    See more | Go to post

    Leave a comment:


  • vieraci
    started a topic How to keep a connection alive

    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;
    ...
    See more | Go to post
No activity results to display
Show More
Working...