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. Error QMYSQL Plugin on Windows
Forum Updated to NodeBB v4.3 + New Features

Error QMYSQL Plugin on Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
59 Posts 8 Posters 19.0k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #47

    Where exactly are the dlls matching the library you used to build the plugin ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    S 2 Replies Last reply
    0
    • SGaistS SGaist

      Where exactly are the dlls matching the library you used to build the plugin ?

      S Offline
      S Offline
      Stelian
      wrote on last edited by
      #48

      @SGaist The dlls I've used are C:Program Files/MYSQL/MySQL Server 8.0/lib

      0_1551558942027_Annotation 2019-03-02 223046.jpg

      If you talk about other dlls please correct me

      1 Reply Last reply
      0
      • SGaistS SGaist

        Where exactly are the dlls matching the library you used to build the plugin ?

        S Offline
        S Offline
        Stelian
        wrote on last edited by
        #49

        @SGaist I would have to use dlls from this path C:Program Files (x86)/MySQL/MySQL Connector C 6.1/lib

        0_1551561982860_Annotation 2019-03-02 232603.jpg

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #50

          @Stelian said in Error QMYSQL Plugin on Windows:

          C:Program Files/MYSQL/MySQL Server 8.0/lib

          Then that's the one you should be having in your PATH environment variable.

          One other thing you can use is Dependency Walker. Use it on your Qt MySQL plugin. Check that it can find the MySQL dll.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          1
          • SGaistS SGaist

            @Stelian said in Error QMYSQL Plugin on Windows:

            C:Program Files/MYSQL/MySQL Server 8.0/lib

            Then that's the one you should be having in your PATH environment variable.

            One other thing you can use is Dependency Walker. Use it on your Qt MySQL plugin. Check that it can find the MySQL dll.

            S Offline
            S Offline
            Stelian
            wrote on last edited by Stelian
            #51

            @SGaist yes, I have that path in my path environment variable.
            I have never used Dependency Walker.
            What do I have to do ?

            JonBJ 1 Reply Last reply
            0
            • S Stelian

              @SGaist yes, I have that path in my path environment variable.
              I have never used Dependency Walker.
              What do I have to do ?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #52

              @Stelian
              Go to http://www.dependencywalker.com/, read, and download the appropriate for your architecture. You just point it at a .exe, or in this case the .dll you are having trouble with. Look through its output window, to see whether there is another .dll which is required but cannot be found, and report back.

              1 Reply Last reply
              2
              • S Offline
                S Offline
                Stelian
                wrote on last edited by
                #53

                0_1551713007838_Annotation 2019-03-03 231800.jpg

                0_1551713024334_Annotation 2019-03-03 231830.jpg

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #54

                  If you close the yellow branches does the MySQL dll appear as good or not ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  S 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    If you close the yellow branches does the MySQL dll appear as good or not ?

                    S Offline
                    S Offline
                    Stelian
                    wrote on last edited by
                    #55

                    @SGaist I don't have an option to close the yellow branches
                    0_1551723782285_Annotation 2019-03-04 202230.jpg

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #56

                      I meant: close the branches where all these warnings can be seen. Just take care to verify that you're not hiding a bigger issue while doing that.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      H 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        I meant: close the branches where all these warnings can be seen. Just take care to verify that you're not hiding a bigger issue while doing that.

                        H Offline
                        H Offline
                        Hitek
                        wrote on last edited by
                        #57

                        @SGaist i got the same issue.
                        This is my dependency walker screen. LIBMYSQL.DLL looks good but i dont know why i still got this error "QSqlDatabase: QMYSQL driver not loaded".Capture.PNG image url)

                        aha_1980A 1 Reply Last reply
                        0
                        • H Hitek

                          @SGaist i got the same issue.
                          This is my dependency walker screen. LIBMYSQL.DLL looks good but i dont know why i still got this error "QSqlDatabase: QMYSQL driver not loaded".Capture.PNG image url)

                          aha_1980A Offline
                          aha_1980A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on last edited by
                          #58

                          Hi @Hitek,

                          This libmysql.dll is a 64 bit library. Are you using a 64 bit or 32 bit Qt version for your program?

                          Regards

                          Qt has to stay free or it will die.

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

                            And is the library in the correct folder?

                            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