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 dll linking issue with QT in windows 10

MYSQL dll linking issue with QT in windows 10

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 4 Posters 858 Views
  • 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
    mvsri
    wrote on last edited by
    #1

    Hey there,

    I have problem in loading the qsqlmysqld.dll file,
    I have used the same settings in other PC and in it, it is running perfectly and i can access the database.
    But here i cannot get the access to Mysql Database.
    When i run the Application using QT_DEBUG_PlUGINS i got this-

    Cannot load library C:\Qt\Qt5.12.3\5.12.3\mingw73_64\plugins\sqldrivers\qsqlmysqld.dll: The specified module could not be found.
    QLibraryPrivate::loadPlugin failed on "C:/Qt/Qt5.12.3/5.12.3/mingw73_64/plugins/sqldrivers/qsqlmysqld.dll" : "Cannot load library C:\\Qt\\Qt5.12.3\\5.12.3\\mingw73_64\\plugins\\sqldrivers\\qsqlmysqld.dll: The specified module could not be found."
    

    can anyone suggest something, why it is not linking the above mentioned dll.

    jsulmJ 1 Reply Last reply
    0
    • M mvsri

      Hey there,

      I have problem in loading the qsqlmysqld.dll file,
      I have used the same settings in other PC and in it, it is running perfectly and i can access the database.
      But here i cannot get the access to Mysql Database.
      When i run the Application using QT_DEBUG_PlUGINS i got this-

      Cannot load library C:\Qt\Qt5.12.3\5.12.3\mingw73_64\plugins\sqldrivers\qsqlmysqld.dll: The specified module could not be found.
      QLibraryPrivate::loadPlugin failed on "C:/Qt/Qt5.12.3/5.12.3/mingw73_64/plugins/sqldrivers/qsqlmysqld.dll" : "Cannot load library C:\\Qt\\Qt5.12.3\\5.12.3\\mingw73_64\\plugins\\sqldrivers\\qsqlmysqld.dll: The specified module could not be found."
      

      can anyone suggest something, why it is not linking the above mentioned dll.

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

      @mvsri said in MYSQL dll linking issue with QT in windows 10:

      But here i cannot get the access to Mysql Database.

      What is "here"? Another machine?
      Most probably MySQL client library is missing.

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mvsri
        wrote on last edited by
        #3

        @jsulm "here" meant the current PC in which i'm trying to get access to mysql database.
        And how can i check MySQL client Library whether it is missing or not?

        Thank you!

        jsulmJ 1 Reply Last reply
        0
        • M mvsri

          @jsulm "here" meant the current PC in which i'm trying to get access to mysql database.
          And how can i check MySQL client Library whether it is missing or not?

          Thank you!

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

          @mvsri Does C:\Qt\Qt5.12.3\5.12.3\mingw73_64\plugins\sqldrivers\qsqlmysqld.dll exist?

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mvsri
            wrote on last edited by
            #5

            @jsulm yes, it exists

            KroMignonK jsulmJ 2 Replies Last reply
            0
            • M mvsri

              @jsulm yes, it exists

              KroMignonK Offline
              KroMignonK Offline
              KroMignon
              wrote on last edited by
              #6

              @mvsri I think you don't have MySQL connector installed on your PC ==> https://stackoverflow.com/questions/31821329/qmysql-driver-loading-error

              You have to download it from MySQL web site and install it

              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

              M 1 Reply Last reply
              0
              • M mvsri

                @jsulm yes, it exists

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

                @mvsri If it is working on the other PC then copy the MySQL client lib from there

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

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mvsri
                  wrote on last edited by
                  #8

                  @jsulm I have tried that, copied the lib files but it still doesn't work.

                  1 Reply Last reply
                  0
                  • KroMignonK KroMignon

                    @mvsri I think you don't have MySQL connector installed on your PC ==> https://stackoverflow.com/questions/31821329/qmysql-driver-loading-error

                    You have to download it from MySQL web site and install it

                    M Offline
                    M Offline
                    mvsri
                    wrote on last edited by
                    #9

                    @KroMignon I have followed that steps earlier in other PC and it's working in it.
                    But the problem is when i try this in my PC it doesn't work and the configuration of both PC's are same and even i tried copying mysql client lib from other PC to my PC and still it doesn't work

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

                      @mvsri said in MYSQL dll linking issue with QT in windows 10:

                      even i tried copying mysql client lib from other PC to my PC

                      Where / how did you copy it? And you should not distribute debug stuff (as qsqlmysqld.dll suggests you're doing)

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

                      M 1 Reply Last reply
                      2
                      • Christian EhrlicherC Christian Ehrlicher

                        @mvsri said in MYSQL dll linking issue with QT in windows 10:

                        even i tried copying mysql client lib from other PC to my PC

                        Where / how did you copy it? And you should not distribute debug stuff (as qsqlmysqld.dll suggests you're doing)

                        M Offline
                        M Offline
                        mvsri
                        wrote on last edited by
                        #11

                        @Christian-Ehrlicher
                        I have uninstalled everything and reinstalled QT and MYSQL following every step which i did on other PC.
                        But still i have the same problem. i even checked the PATH everything is correct and i don't know where am i going wrong.

                        KroMignonK 1 Reply Last reply
                        0
                        • M mvsri

                          @Christian-Ehrlicher
                          I have uninstalled everything and reinstalled QT and MYSQL following every step which i did on other PC.
                          But still i have the same problem. i even checked the PATH everything is correct and i don't know where am i going wrong.

                          KroMignonK Offline
                          KroMignonK Offline
                          KroMignon
                          wrote on last edited by
                          #12

                          @mvsri Just to be sure every dependency is correctly set, can you try to check C:/Qt/Qt5.12.3/5.12.3/mingw73_64/plugins/sqldrivers/qsqlmysqld.dll with Dependency Walker ?

                          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                          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