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
Forum Updated to NodeBB v4.3 + New Features

MYSQL dll linking issue with QT in windows 10

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 4 Posters 888 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 19 Dec 2019, 09:10 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.

    J 1 Reply Last reply 19 Dec 2019, 09:13
    0
    • M mvsri
      19 Dec 2019, 09:10

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 19 Dec 2019, 09:13 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 19 Dec 2019, 09:19 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!

        J 1 Reply Last reply 19 Dec 2019, 09:23
        0
        • M mvsri
          19 Dec 2019, 09:19

          @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!

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 19 Dec 2019, 09:23 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 19 Dec 2019, 09:25 last edited by
            #5

            @jsulm yes, it exists

            K J 2 Replies Last reply 19 Dec 2019, 09:28
            0
            • M mvsri
              19 Dec 2019, 09:25

              @jsulm yes, it exists

              K Offline
              K Offline
              KroMignon
              wrote on 19 Dec 2019, 09:28 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 19 Dec 2019, 09:38
              0
              • M mvsri
                19 Dec 2019, 09:25

                @jsulm yes, it exists

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 19 Dec 2019, 09:33 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 19 Dec 2019, 09:35 last edited by
                  #8

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

                  1 Reply Last reply
                  0
                  • K KroMignon
                    19 Dec 2019, 09:28

                    @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 19 Dec 2019, 09:38 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
                    • C Offline
                      C Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on 19 Dec 2019, 09:40 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 19 Dec 2019, 10:01
                      2
                      • C Christian Ehrlicher
                        19 Dec 2019, 09:40

                        @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 19 Dec 2019, 10:01 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.

                        K 1 Reply Last reply 19 Dec 2019, 10:34
                        0
                        • M mvsri
                          19 Dec 2019, 10:01

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

                          K Offline
                          K Offline
                          KroMignon
                          wrote on 19 Dec 2019, 10:34 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

                          1/12

                          19 Dec 2019, 09:10

                          • Login

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