Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MYSQL_OPT_CONNECT_TIMEOUT

MYSQL_OPT_CONNECT_TIMEOUT

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NisixN Offline
    NisixN Offline
    Nisix
    wrote on last edited by
    #1

    Hi guys, i need your help about the function QSqlDatabase with the option "MYSQL_OPT_CONNECT_TIMEOUT" .
    My problem is : i need to connect to a database with my app. But when i can't access to my database the app still bug and need to close it. So i tried the this option connect_timeout but don't work at all.
    Thank in advance for your help :)

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      How did you set MYSQL_OPT_CONNECT_TIMEOUT?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      NisixN 1 Reply Last reply
      0
      • jsulmJ jsulm

        How did you set MYSQL_OPT_CONNECT_TIMEOUT?

        NisixN Offline
        NisixN Offline
        Nisix
        wrote on last edited by
        #3

        @jsulm I just want to know, how to use it. Maybe an exemple can help me. I don't know how it's works

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          it's all described here

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved