Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. After build and install MySql driver for Qt it's unable to load the MySql Drive
Forum Updated to NodeBB v4.3 + New Features

After build and install MySql driver for Qt it's unable to load the MySql Drive

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
16 Posts 3 Posters 1.3k 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.
  • M Offline
    M Offline
    Malibob
    wrote on last edited by
    #1

    I'm already build and install the MySql drive like QT 01.JPG
    But still I got the error message QMYSQL driver not loaded. Now it;s say MySql as a available driver. I'm using 64bit windows, Qt creator version 32-bit, mingw81_64 and MySql 64 bit Error is,

    " QMYSQL driver not loaded. available drivers: QSQLITE QMARIADB QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7"
    How can I solve this?

    jsulmJ 1 Reply Last reply
    0
    • M Malibob

      I'm already build and install the MySql drive like QT 01.JPG
      But still I got the error message QMYSQL driver not loaded. Now it;s say MySql as a available driver. I'm using 64bit windows, Qt creator version 32-bit, mingw81_64 and MySql 64 bit Error is,

      " QMYSQL driver not loaded. available drivers: QSQLITE QMARIADB QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7"
      How can I solve this?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Malibob In the screen shot you did not build and install anything. You only called qmake. Did you also call make/make install?

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

      M 1 Reply Last reply
      0
      • M Offline
        M Offline
        Malibob
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • jsulmJ jsulm

          @Malibob In the screen shot you did not build and install anything. You only called qmake. Did you also call make/make install?

          M Offline
          M Offline
          Malibob
          wrote on last edited by Malibob
          #4

          @jsulm
          Yes I did make/make install. If any problem in MySql version?

          jsulmJ 1 Reply Last reply
          0
          • M Malibob

            @jsulm
            Yes I did make/make install. If any problem in MySql version?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Malibob You can use https://www.dependencywalker.com/ to check whether something is missing for the MySQL plug-in DLL.

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

            M 1 Reply Last reply
            2
            • jsulmJ jsulm

              @Malibob You can use https://www.dependencywalker.com/ to check whether something is missing for the MySQL plug-in DLL.

              M Offline
              M Offline
              Malibob
              wrote on last edited by
              #6

              @jsulm
              I'm using 64bit windows, Qt creator version 32-bit, mingw81_64 and MySql 64 bit. What are the .dll s that i want to use and where? I'm confused with this .dll stuff

              jsulmJ 1 Reply Last reply
              0
              • J Offline
                J Offline
                JSher
                wrote on last edited by
                #7

                Your mysql driver has to be accessed by the compiler you are using. Put it in the bin directory of mingw

                --James

                M jsulmJ 2 Replies Last reply
                0
                • J JSher

                  Your mysql driver has to be accessed by the compiler you are using. Put it in the bin directory of mingw

                  --James

                  M Offline
                  M Offline
                  Malibob
                  wrote on last edited by
                  #8

                  @JSher Thank you for reply. Did You mean put libmysql.dll and libmysql.lib in to mingw's bin? it doesn't work. I'm new to programming. So this may be silly question

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    JSher
                    wrote on last edited by
                    #9

                    I would download mysql connector 6.1(last one with prebuilt libmysql.dll and use it to be sure you did not mess up the build.

                    If that does not work open creator, click projects on left side, switch top to debug and add a Build Environment entry called QT_DEBUG_PLUGINS and set it to 1. Then run in debug mode and read through the module load trace to see where it is loading what module from and whether it is able to load what it is looking for.

                    --James

                    1 Reply Last reply
                    0
                    • J JSher

                      Your mysql driver has to be accessed by the compiler you are using. Put it in the bin directory of mingw

                      --James

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @JSher said in After build and install MySql driver for Qt it's unable to load the MySql Drive:

                      Your mysql driver has to be accessed by the compiler you are using. Put it in the bin directory of mingw

                      What?!
                      This is not necessary at all!

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

                      1 Reply Last reply
                      0
                      • M Malibob

                        @jsulm
                        I'm using 64bit windows, Qt creator version 32-bit, mingw81_64 and MySql 64 bit. What are the .dll s that i want to use and where? I'm confused with this .dll stuff

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @Malibob Open qsqlmysql.dll in DependencyWalker and see whether something is missing (especially the MySQL client lib).

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

                        M 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Malibob Open qsqlmysql.dll in DependencyWalker and see whether something is missing (especially the MySQL client lib).

                          M Offline
                          M Offline
                          Malibob
                          wrote on last edited by Malibob
                          #12

                          @jsulm Ther is no qsqlmysql.dll anywhere

                          jsulmJ 1 Reply Last reply
                          0
                          • M Malibob

                            @jsulm Ther is no qsqlmysql.dll anywhere

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @Malibob There is - in your Qt installation: on my machine it is in c:\Qt\5.11.1\mingw53_32\plugins\sqldrivers

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

                            M 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @Malibob There is - in your Qt installation: on my machine it is in c:\Qt\5.11.1\mingw53_32\plugins\sqldrivers

                              M Offline
                              M Offline
                              Malibob
                              wrote on last edited by
                              #14

                              @jsulm I got this. depre.JPG
                              Is it make any sence

                              jsulmJ 1 Reply Last reply
                              0
                              • M Malibob

                                @jsulm I got this. depre.JPG
                                Is it make any sence

                                jsulmJ Offline
                                jsulmJ Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                @Malibob From that screen-shot I can't say. Please collapse all MS DLLs. Especially check whether the MySQL client lib is found.

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

                                M 1 Reply Last reply
                                0
                                • jsulmJ jsulm

                                  @Malibob From that screen-shot I can't say. Please collapse all MS DLLs. Especially check whether the MySQL client lib is found.

                                  M Offline
                                  M Offline
                                  Malibob
                                  wrote on last edited by
                                  #16

                                  @jsulm There is no MySQL client lib collapse

                                  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