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. Qt win10 QMYSQL driver not loaded
Forum Updated to NodeBB v4.3 + New Features

Qt win10 QMYSQL driver not loaded

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 1.1k 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.
  • TheCipo76T Offline
    TheCipo76T Offline
    TheCipo76
    wrote on last edited by
    #1

    Hi, i've installed on a new develope machine with Windows 10:

    • Qt 5.12.5
    • MySQL 5.7.28 ;
    • MySQL Connector C 6.1

    When i try to use MySQL i've the hated message "QMYSQL Driver not loaded"

    in command prompt:

    qmake.PNG

    Seems that MYSQL was detected but
    when i lauch my application..

    Application Output (with Environment Variable set to 1)

    Application Output.PNG

    i've checked and qsqlmysql.dll was in C:\Qt\5.12.5\mingw73_32\plugins\sqldrivers
    folder..

    any ideas of how to resolve this problem??

    Thanks in advance.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      As always (and which could also be found be the search function) make sure that the plugin finds all needed dlls by using e.g. Dependency Walker.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      TheCipo76T 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        As always (and which could also be found be the search function) make sure that the plugin finds all needed dlls by using e.g. Dependency Walker.

        TheCipo76T Offline
        TheCipo76T Offline
        TheCipo76
        wrote on last edited by
        #3

        @Christian-Ehrlicher

        DependencyWalker.PNG

        and then??
        Seem that can't find many dll..

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          So you should make sure that the dlls can be found be e.g. copying the needed mysql libs to the sql plugin folder or adding them to PATH env var.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          TheCipo76T 1 Reply Last reply
          3
          • Christian EhrlicherC Christian Ehrlicher

            So you should make sure that the dlls can be found be e.g. copying the needed mysql libs to the sql plugin folder or adding them to PATH env var.

            TheCipo76T Offline
            TheCipo76T Offline
            TheCipo76
            wrote on last edited by
            #5

            @Christian-Ehrlicher
            Ok all works now..
            Thank you very much!

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Raftapss
              wrote on last edited by Raftapss
              #6

              The mysql libraries are .lib or other. I try but.. I downloaded depedency walker. When I open the DLL it is put for example API-MS-WIN-CORE-APPCOMPAT-L1-1-0.DLL is not findable. When I run a search in windows search I can not find it. That's why I'm asking for an example. I miss a lot of other DLLs but how do I know where they are?
              I am a beginner, sorry for the questions that seem simple to you. They are not really for me!

              1 Reply Last reply
              0
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Raftapss said in Qt win10 QMYSQL driver not loaded:

                What files did you move and where did you move them?

                So hard to read?

                copying the needed mysql libs to the sql plugin folder or adding them to PATH env var.

                So why don't you look with dependency walker by yourself to see which mysql libs are needed - learning by doing is really a good idea...

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Raftapss
                  wrote on last edited by
                  #8

                  The mysql libraries are .lib or other. I try but i whose anderstant. I downloaded depedency walker. When I open the DLL it is put for example API-MS-WIN-CORE-APPCOMPAT-L1-1-0.DLL is not findable. When I run a search in windows search I can not find it. That's why I'm asking for an example. I miss a lot of other DLLs but how do I know where they are?
                  I am a beginner, sorry for the questions that seem simple to you. They are not really for me!

                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    You should look for mysql libraries, not for ones from windows.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    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