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.
  • 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