Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. I had complied qsqlmysql.dll.
Forum Updated to NodeBB v4.3 + New Features

I had complied qsqlmysql.dll.

Scheduled Pinned Locked Moved Unsolved Qt 6
28 Posts 4 Posters 4.8k 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.
  • yuyuY yuyu

    @jsulm I can not connect my mysql database .

    jsulmJ Online
    jsulmJ Online
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #16

    @yuyu What does db.open() return?
    What does https://doc.qt.io/qt-5/qsqldatabase.html#lastError return after open() call?

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

    yuyuY 1 Reply Last reply
    0
    • yuyuY yuyu

      @jsulm I can not connect my mysql database .

      NevezN Offline
      NevezN Offline
      Nevez
      wrote on last edited by
      #17

      @yuyu Still getting driver not installed error? and yes share the result of db.open() as well.

      1 Reply Last reply
      0
      • jsulmJ jsulm

        @yuyu What does db.open() return?
        What does https://doc.qt.io/qt-5/qsqldatabase.html#lastError return after open() call?

        yuyuY Offline
        yuyuY Offline
        yuyu
        wrote on last edited by
        #18

        @jsulm false

        jsulmJ 1 Reply Last reply
        0
        • yuyuY yuyu

          @jsulm false

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #19

          @yuyu I asked two questions. Would you be so kind to also answer the second one?

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

          yuyuY 1 Reply Last reply
          0
          • jsulmJ jsulm

            @yuyu I asked two questions. Would you be so kind to also answer the second one?

            yuyuY Offline
            yuyuY Offline
            yuyu
            wrote on last edited by
            #20

            @Nevez yes,but I had install it. it return false.
            sometime has
            42e82386-47d7-4a05-91c6-2934dd95689d-image.png

            qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "C:/Qt/6.3.0/mingw_64/plugins/sqldrivers/qsqlmysql.dll" : "Cannot load library C:\\Qt\\6.3.0\\mingw_64\\plugins\\sqldrivers\\qsqlmysql.dll:
            
            jsulmJ NevezN 2 Replies Last reply
            0
            • yuyuY yuyu

              @Nevez yes,but I had install it. it return false.
              sometime has
              42e82386-47d7-4a05-91c6-2934dd95689d-image.png

              qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "C:/Qt/6.3.0/mingw_64/plugins/sqldrivers/qsqlmysql.dll" : "Cannot load library C:\\Qt\\6.3.0\\mingw_64\\plugins\\sqldrivers\\qsqlmysql.dll:
              
              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #21

              @yuyu I'm confused: before you posted output showing that the plug-in was loaded.
              Now you posted output showing that it could not be loaded.

              Please do again what was suggested before: set QT_DEBUG_PLUGINS and if the plug-in fails to load post the output here...

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

              yuyuY 1 Reply Last reply
              0
              • jsulmJ jsulm

                @yuyu I'm confused: before you posted output showing that the plug-in was loaded.
                Now you posted output showing that it could not be loaded.

                Please do again what was suggested before: set QT_DEBUG_PLUGINS and if the plug-in fails to load post the output here...

                yuyuY Offline
                yuyuY Offline
                yuyu
                wrote on last edited by
                #22

                @jsulm you can try it ,it may be a problem,you can use mysql 8.0.28 and qt6.3 , you can find this error.

                jsulmJ 1 Reply Last reply
                0
                • yuyuY yuyu

                  @jsulm you can try it ,it may be a problem,you can use mysql 8.0.28 and qt6.3 , you can find this error.

                  jsulmJ Online
                  jsulmJ Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #23

                  @yuyu I'm not going to try anything.
                  I suggested what you can do to get help.
                  It is up to you to do that or not...

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

                  yuyuY 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @yuyu I'm not going to try anything.
                    I suggested what you can do to get help.
                    It is up to you to do that or not...

                    yuyuY Offline
                    yuyuY Offline
                    yuyu
                    wrote on last edited by
                    #24

                    @jsulm I think it's a waste of time, regardless of the problem

                    1 Reply Last reply
                    0
                    • yuyuY yuyu

                      @Nevez yes,but I had install it. it return false.
                      sometime has
                      42e82386-47d7-4a05-91c6-2934dd95689d-image.png

                      qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "C:/Qt/6.3.0/mingw_64/plugins/sqldrivers/qsqlmysql.dll" : "Cannot load library C:\\Qt\\6.3.0\\mingw_64\\plugins\\sqldrivers\\qsqlmysql.dll:
                      
                      NevezN Offline
                      NevezN Offline
                      Nevez
                      wrote on last edited by
                      #25

                      @yuyu
                      I am using Mysql 8.x.x and QT 6.2.3. Mysql works fine too.
                      According to the error you get, you may have placed the relevant DLL in the wrong place or you may have used the wrong version DLL.
                      There was a video on youtube that did this well. You will find it on your first search.

                      yuyuY 1 Reply Last reply
                      0
                      • NevezN Nevez

                        @yuyu
                        I am using Mysql 8.x.x and QT 6.2.3. Mysql works fine too.
                        According to the error you get, you may have placed the relevant DLL in the wrong place or you may have used the wrong version DLL.
                        There was a video on youtube that did this well. You will find it on your first search.

                        yuyuY Offline
                        yuyuY Offline
                        yuyu
                        wrote on last edited by
                        #26

                        @Nevez said in I had complied qsqlmysql.dll.:

                        I am using Mysql 8.x.x and QT 6.2.3. Mysql works fine too.
                        According to the error you get, you may have placed the relevant DLL in the wrong place or you may have used the wrong version DLL.
                        There was a video on youtube that did this well. You will find it on your first search.

                        I user mysql >8.0.19,I see the doc, tha say
                        87882de6-de9b-4b19-9f2b-eec86429632f-image.png

                        NevezN 1 Reply Last reply
                        0
                        • yuyuY yuyu

                          @Nevez said in I had complied qsqlmysql.dll.:

                          I am using Mysql 8.x.x and QT 6.2.3. Mysql works fine too.
                          According to the error you get, you may have placed the relevant DLL in the wrong place or you may have used the wrong version DLL.
                          There was a video on youtube that did this well. You will find it on your first search.

                          I user mysql >8.0.19,I see the doc, tha say
                          87882de6-de9b-4b19-9f2b-eec86429632f-image.png

                          NevezN Offline
                          NevezN Offline
                          Nevez
                          wrote on last edited by
                          #27

                          @yuyu
                          so i am using 8.0.27, i recommend you too.

                          yuyuY 1 Reply Last reply
                          0
                          • NevezN Nevez

                            @yuyu
                            so i am using 8.0.27, i recommend you too.

                            yuyuY Offline
                            yuyuY Offline
                            yuyu
                            wrote on last edited by
                            #28

                            @Nevez en,than you very much .I think it is ok ,I will use 8.0.27.That is a good idea.

                            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