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.
  • D Offline
    D Offline
    dijuna
    wrote on 4 Apr 2018, 13:47 last edited by dijuna 4 Apr 2018, 14:02
    #1
    This post is deleted!
    R 1 Reply Last reply 4 Apr 2018, 15:48
    0
    • D dijuna
      4 Apr 2018, 13:47

      This post is deleted!

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 4 Apr 2018, 15:48 last edited by raven-worx 4 Apr 2018, 15:50
      #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

      D 1 Reply Last reply 5 Apr 2018, 09:54
      1
      • R raven-worx
        4 Apr 2018, 15:48

        @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

        D Offline
        D Offline
        dijuna
        wrote on 5 Apr 2018, 09:54 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.

        J 1 Reply Last reply 5 Apr 2018, 10:52
        0
        • D dijuna
          5 Apr 2018, 09:54

          @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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 5 Apr 2018, 10:52 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

          D 1 Reply Last reply 5 Apr 2018, 11:13
          0
          • J jsulm
            5 Apr 2018, 10:52

            @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.

            D Offline
            D Offline
            dijuna
            wrote on 5 Apr 2018, 11:13 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?

            J 1 Reply Last reply 5 Apr 2018, 11:19
            0
            • D dijuna
              5 Apr 2018, 11:13

              @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?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 5 Apr 2018, 11:19 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
              • D Offline
                D Offline
                dijuna
                wrote on 5 Apr 2018, 11:21 last edited by
                #7

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

                1 Reply Last reply
                0

                1/7

                4 Apr 2018, 13:47

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved