Thread: daemon?

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Posts
    12
    Rep Power
    0
    Im doing a webpage with MySQL through the c API and i was wondering if it would be a good idea to write a daemon to avoid all the connecting/disconnecting every time the database is "queried". The daemon would simply be called through whatever cgi program i write to query the database. Anyone has any thought on that or better and simpler ideas? (note that im using c and not perl here)
    Thanks!
  2. #2
  3. No Profile Picture
    Gödelian monster
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 1999
    Location
    Central Florida, USA
    Posts
    2,307
    Rep Power
    62
    Go to Freshmeat.net and see SQL Relay 0.8
    http://freshmeat.net/news/2000/05/16/958463251.html
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Posts
    12
    Rep Power
    0
    Thanks! Thats exactly what i was looking for an a bit more. It'll give me something to play with for a while i think
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    1
    Rep Power
    0
    Or AFAIK you could write a wepapplication in php with phplib with a session and a user. Then you can start and stop a persistent mysql session on logon, and run whatever on the server as to your own security specifications.

    Untried - never touched c, but a starting point would a search in the manual found under
    http://www.php.net

    and of phplib
    http://phplib.netuse.de

    Let me know of security issues if big ;-)

    nicholas



    [This message has been edited by nicholak (edited May 19, 2000).]

Similar Threads

  1. Cannot restart mysql daemon
    By twobyte in forum MySQL Help
    Replies: 1
    Last Post: September 30th, 2003, 03:55 AM
  2. Programming a daemon for freeBSD
    By ppss in forum C Programming
    Replies: 1
    Last Post: September 19th, 2003, 05:06 PM
  3. run mysql as daemon?
    By blackbird in forum MySQL Help
    Replies: 1
    Last Post: October 7th, 2002, 08:53 AM
  4. Passing data to a daemon
    By riddler in forum PHP Development
    Replies: 4
    Last Post: September 18th, 2000, 01:05 PM

IMN logo majestic logo threadwatch logo seochat tools logo