Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QMYSQL Driver not available Windows 10

    Tools
    3
    8
    386
    Loading More Posts
    • 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.
    • I
      IAmUnshure last edited by

      Hello I am pretty new to QT and we are a Team of Developers using QT on different platforms.
      I managed it to run QT with the Plugin on MacOs and everything is fine.
      However Windows 10 is much more pain cause the internet is full of different kind of solutions and none of them work.

      The source I tried : https://doc.qt.io/qt-5/sql-driver.html

      after doing the first command, it already says that mysql is not available and that it doesn't know mingw32-make

      Please help me this has already taken me for more than 32 hours.

      Versions: QT 5.14, Windows 10, MySql Server 10, MySql Connecter C 6.1

      1 Reply Last reply Reply Quote 0
      • Christian Ehrlicher
        Christian Ehrlicher Lifetime Qt Champion last edited by

        You have to run it from the Qt command line where mingw32-make is in the PATH (when you use mingw)

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 3
        • I
          IAmUnshure last edited by

          but where is the command line in QT is there a terminal in the Creator or what do you mean by that ?

          I 1 Reply Last reply Reply Quote 0
          • I
            IAmUnshure @IAmUnshure last edited by

            For record:
            -I've tried to build the mysql plugin in the creator wich gives the error "mysql library not found",
            -I've tried to do it in the command line with the errors "Nothing to be done for all"
            -I've tried to use other compilers and even the 32 and 64 bit version
            -I've tried to copy the libmysql dll's and nothing changed

            , every time there are more errors than before I would just like to have a cristal clear instruction what to do right from the start.

            1 Reply Last reply Reply Quote 0
            • Christian Ehrlicher
              Christian Ehrlicher Lifetime Qt Champion last edited by

              @IAmUnshure said in QMYSQL Driver not available Windows 10:

              -I've tried to build the mysql plugin in the creator wich gives the error "mysql library not found",

              This is not what's in the docs

              -I've tried to do it in the command line with the errors "Nothing to be done for all"

              What exactly was the output of the commands you did?

              -I've tried to use other compilers and even the 32 and 64 bit version

              You can't mix 32 and 64 bit libs.

              -I've tried to copy the libmysql dll's and nothing changed

              Why should this change something?

              Qt has to stay free or it will die.

              1 Reply Last reply Reply Quote 1
              • I
                IAmUnshure last edited by

                I will do asap, all these things I tried, cause they mentioned it on several sides when this problem appears. We first went all 64 bits, nothing worked, should we try 32 instead ?
                the docs tell you first to do the qmake command, I did that and it shows that the mysql driver is not available.

                T 1 Reply Last reply Reply Quote 0
                • T
                  thecodemonkey @IAmUnshure last edited by

                  @IAmUnshure
                  if it helps you: I provide the QMYSQL driver DLL here on GitHub, built from official source code https://github.com/thecodemonkey86/qt_mysql_driver/releases

                  I 1 Reply Last reply Reply Quote 0
                  • I
                    IAmUnshure @thecodemonkey last edited by

                    @thecodemonkey
                    Thank you so much !

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post