Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. MySql driver for Qt 5.1 on Windows
Forum Updated to NodeBB v4.3 + New Features

MySql driver for Qt 5.1 on Windows

Scheduled Pinned Locked Moved Installation and Deployment
17 Posts 3 Posters 4.8k 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.
  • G Offline
    G Offline
    Giperboloid
    wrote on last edited by
    #8

    [quote author="Ever" date="1387795692"]Here you can download
    "Qt 5.2.0 for Windows 32-bit MinGW 4.8, OpenGL":http://download.qt-project.org/official_releases/qt/5.2/5.2.0/qt-windows-opensource-5.2.0-mingw48_opengl-x86-offline.exe

    I suggest you that you remove previous installation of Qt by running MaintenanceTool.exe[/quote]

    What do you mean? I didn't use this maintenance tool and even didn't remove my Qt 5.1.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Ever
      wrote on last edited by
      #9

      It is optional.

      The roots of education are bitter, but the fruit is sweet.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Giperboloid
        wrote on last edited by
        #10

        Ok, I just have installed Qt 5.2 with all sources. I have such connection:
        @QSqlDatabase lib = QSqlDatabase::addDatabase("QMYSQL");@
        and the output is:

        @QSqlDatabase: QMYSQL driver not loaded
        QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7@

        very intresting thing: driver is available but not loaded.

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

          Do you have MySql installed ? If so, is the folder containing the MySql dlls in your PATH environment variable ?

          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
          0
          • G Offline
            G Offline
            Giperboloid
            wrote on last edited by
            #12

            Emm... It's Windows, about what PATH you are talking?

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

              Indeed, the PATH environment variable that is used to find the executables/dlls on one's system

              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
              0
              • G Offline
                G Offline
                Giperboloid
                wrote on last edited by
                #14

                Ok, how I can check this variable?

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

                  Look in the run panel from Qt Creator

                  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
                  0
                  • E Offline
                    E Offline
                    Ever
                    wrote on last edited by
                    #16

                    bq. very intresting thing: driver is available but not loaded

                    You can copy file libmysql.dll from C:\Program Files\MySQL\MySQL Server 5.6\lib (absolute path on my computer), to debug and/or release folder of our project.

                    The roots of education are bitter, but the fruit is sweet.

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      Giperboloid
                      wrote on last edited by
                      #17

                      Sorry, nothing haven't help me so I decided to choose SQLite. Thanks for answers.

                      1 Reply Last reply
                      0

                      • Login

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