Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. MySQL driver/plugin and libmysql.dll for Qt5 MSVS2017 64-bit
Forum Updated to NodeBB v4.3 + New Features

MySQL driver/plugin and libmysql.dll for Qt5 MSVS2017 64-bit

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 3 Posters 3.9k Views 2 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.
  • dijunaD Offline
    dijunaD Offline
    dijuna
    wrote on last edited by dijuna
    #1
    This post is deleted!
    raven-worxR 1 Reply Last reply
    0
    • dijunaD dijuna

      This post is deleted!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @dijuna
      deploy the mysql lib along with the plugin or the exe.... or make sure it's inside the PATH
      And that its built using the same compiler of course

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      dijunaD 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @dijuna
        deploy the mysql lib along with the plugin or the exe.... or make sure it's inside the PATH
        And that its built using the same compiler of course

        dijunaD Offline
        dijunaD Offline
        dijuna
        wrote on last edited by
        #3

        @raven-worx I believe I'm doing just that. Lets forget about MSVS2017 64-bit kit for now, I'm using default "Desktop Qt 5.10.1 MinGW 32bit" kit just to get it to work. Plugin qsqlmysql.dll file is in C:\Qt\5.10.1\mingw53_32\plugins\sqldrivers (it's where Qt Installer put it, I don't build Qt by my own so it has to be the same compiler) and I was never before moving it anywhere and my application was running. 32-bit libmysql.dll I got with MySQL Installer, by installing 32-bit MySQL Connector/C. After compiling my application, I copy the file to where the EXE is so it's $$OUT_PWD/debug. Still getting the error.

        jsulmJ 1 Reply Last reply
        0
        • dijunaD dijuna

          @raven-worx I believe I'm doing just that. Lets forget about MSVS2017 64-bit kit for now, I'm using default "Desktop Qt 5.10.1 MinGW 32bit" kit just to get it to work. Plugin qsqlmysql.dll file is in C:\Qt\5.10.1\mingw53_32\plugins\sqldrivers (it's where Qt Installer put it, I don't build Qt by my own so it has to be the same compiler) and I was never before moving it anywhere and my application was running. 32-bit libmysql.dll I got with MySQL Installer, by installing 32-bit MySQL Connector/C. After compiling my application, I copy the file to where the EXE is so it's $$OUT_PWD/debug. Still getting the error.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dijuna As @raven-worx mentioned most probably the problem is that libmysql.dll was built using a different compiler and therefore is not compatible with your MinGW Qt.

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

          dijunaD 1 Reply Last reply
          0
          • jsulmJ jsulm

            @dijuna As @raven-worx mentioned most probably the problem is that libmysql.dll was built using a different compiler and therefore is not compatible with your MinGW Qt.

            dijunaD Offline
            dijunaD Offline
            dijuna
            wrote on last edited by
            #5

            @jsulm but libmysql.dll is provided by Oracle, you don't build it by your own, right? So this problem should occur for everybody using 5.10.1 Qt and 5.7.21 MySQL Server. Noone noticed it just stopped working all of sudden?

            jsulmJ 1 Reply Last reply
            0
            • dijunaD dijuna

              @jsulm but libmysql.dll is provided by Oracle, you don't build it by your own, right? So this problem should occur for everybody using 5.10.1 Qt and 5.7.21 MySQL Server. Noone noticed it just stopped working all of sudden?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @dijuna You apparently didn't try to search here for this issue - it is really not new and didn't stop working all of sudden.
              Whether it works or not out of the box depends on the compiler you're using. My guess is that Oracle uses Visual C++ for Windows builds. You're using MinGW - this combination can't work (it isn't a Qt issue). You can build the MySql client library by yourself with MinGW or use Visual C++ compiler on Windows.

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

              1 Reply Last reply
              1
              • dijunaD Offline
                dijunaD Offline
                dijuna
                wrote on last edited by
                #7

                My bad, oh my, it's just a typo... "MYSQL", not "QMYSQL"... sorry.

                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