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
Qt 6.11 is out! See what's new in the release blog

Error QMYSQL Plugin on Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 984 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.
  • Y Offline
    Y Offline
    yreymak
    wrote on last edited by
    #1

    Re: Error QMYSQL Plugin on Windows

    Hello to all! I'm trying to do by example
    https://doc.qt.io/qt-6/sql-driver.html#qmysql
    But I get some kind of error
    Linking CXX shared module plugins\sqldrivers\qsqlite.dll
    FAILED: plugins/sqldrivers/qsqlite.dll
    Could someone help me please

    image_2022-07-09_14-35-24.png

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

      Hi and welcome to devnet,

      Add the path to the MySQL driver so you build only that one.

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

      Y 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Add the path to the MySQL driver so you build only that one.

        Y Offline
        Y Offline
        yreymak
        wrote on last edited by
        #3

        @SGaist Excuse me, could you explain in more detail? Where should I add the path ? If you are talking about environment variables, I have it.
        Thank you so much

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

          Rather than "XXX/sqldrivers", go one level below: "XXX/sqldrivers/mysql".

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

          Christian EhrlicherC 1 Reply Last reply
          0
          • SGaistS SGaist

            Rather than "XXX/sqldrivers", go one level below: "XXX/sqldrivers/mysql".

            Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @SGaist said in Error QMYSQL Plugin on Windows:

            Rather than "XXX/sqldrivers", go one level below: "XXX/sqldrivers/mysql".

            I doubt it will work - the build system is ninja.
            Not sure for the correct syntax though but ninja -t targets should print the list of all available targets, at least one should be the mysql plugin, then run ninja <targetname> or simply remove the sqlite subdir from the CMakeLists.txt

            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