Results 1 to 2 of 2

Thread: Staying connected to a MySQL server

  1. #1
    Join Date
    Jul 2006
    Location
    Atlanta, GA
    Posts
    86
    Thanks
    26
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Staying connected to a MySQL server

    I am having an issue staying connected to a MySQL server. On my test server, I have no trouble staying connected, but I don't think there is a timeout for inactivity. It seems that the timeout for inactivity is 60 seconds on the production server. Could anyone refer me to some code on checking to see if a connection is still active, or how to keep a connection to a MySQL server alive? Any help is greatly appreciated.
    fnmblot
    --------------------------------------
    Gee Ricky, I'm sorry your mom blew up.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Staying connected to a MySQL server

    I think you need to alter the server's configuration for that. The client can do nothing about it, at least not through the API. You can always keep the connection alive by sending fake requests, but that's not really a solution. You might search MySQL forums for keepalive solutions, I see there are some threads about it.

Similar Threads

  1. Acces to a remote mysql server
    By Alienxs in forum Qt Programming
    Replies: 2
    Last Post: 19th August 2006, 03:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.