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. another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b)
Qt 6.11 is out! See what's new in the release blog

another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b)

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

    dear all, I feel realy frustrated and annoyed and its akward to ask again here.

    Is there someone from you who succesfully installed mysql c connector with win10 64b on mingw 7.x 32b with qt 5.12/13?
    And would be willing to send me a copy of .dll so I dont have to compile driver myself?

    Im on new laptop with spec above, before i was same but win7 where took me all week to finaly install working mysql c connector. But now same things doesnt work, after another week, no version of mysql connector working and qt cant recognize mysql driver (QMYSQL not listed amoung drivers).

    Please let me know if someone can provide needed dlls....

    Thank you

    jsulmJ 1 Reply Last reply
    0
    • S shokarta

      dear all, I feel realy frustrated and annoyed and its akward to ask again here.

      Is there someone from you who succesfully installed mysql c connector with win10 64b on mingw 7.x 32b with qt 5.12/13?
      And would be willing to send me a copy of .dll so I dont have to compile driver myself?

      Im on new laptop with spec above, before i was same but win7 where took me all week to finaly install working mysql c connector. But now same things doesnt work, after another week, no version of mysql connector working and qt cant recognize mysql driver (QMYSQL not listed amoung drivers).

      Please let me know if someone can provide needed dlls....

      Thank you

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

      @shokarta said in another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b):

      mingw 7.x 32

      As far as I know on Windows MySQL is compiled using Microsoft compiler and not MinGW. You either compile the MySQL client lib by yourself using MinGW or switch to Microsoft compiler.

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

      S 1 Reply Last reply
      0
      • jsulmJ jsulm

        @shokarta said in another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b):

        mingw 7.x 32

        As far as I know on Windows MySQL is compiled using Microsoft compiler and not MinGW. You either compile the MySQL client lib by yourself using MinGW or switch to Microsoft compiler.

        S Offline
        S Offline
        shokarta
        wrote on last edited by shokarta
        #3

        @jsulm said in another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b):

        @shokarta said in another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b):

        mingw 7.x 32

        As far as I know on Windows MySQL is compiled using Microsoft compiler and not MinGW. You either compile the MySQL client lib by yourself using MinGW or switch to Microsoft compiler.

        well, before new laptop, i had also mingw 7.x 32b on win7 64b with qt 5.12.3 32b, and i just downloaded some version (it was one specific, not all versions worked) of mysql connector c from official mysql website, and it worked... no msvc compiler was used, and did not compile it myself...

        would this be a very big thing to ask someone to compile it for me? :(

        Thank you

        jsulmJ 1 Reply Last reply
        0
        • S shokarta

          @jsulm said in another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b):

          @shokarta said in another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b):

          mingw 7.x 32

          As far as I know on Windows MySQL is compiled using Microsoft compiler and not MinGW. You either compile the MySQL client lib by yourself using MinGW or switch to Microsoft compiler.

          well, before new laptop, i had also mingw 7.x 32b on win7 64b with qt 5.12.3 32b, and i just downloaded some version (it was one specific, not all versions worked) of mysql connector c from official mysql website, and it worked... no msvc compiler was used, and did not compile it myself...

          would this be a very big thing to ask someone to compile it for me? :(

          Thank you

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

          @shokarta said in another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b):

          would this be a very big thing to ask someone to compile it for me?

          Well, if somebody wants to do it and has time...

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

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jackd2
            wrote on last edited by jackd2
            #5

            I tried for few days to connect Qt to MySQL on 5.13.0.
            Try 5.11.1 + MinGW32. You can try another version if you want to.

            1. cmd.exe
            2. cd %QTDIR%\5.11.1\Src\qtbase\src\plugins\sqldrivers
            3. qmake MYSQL_INCDIR="path to mysql.h folder" MYSQL_LIBDIR="path to mysql.dll folder"
            4. ignore output (it will say "No" to MySQL", that happened in my case)
            5. mingw32-make
            6. mingw32-make install
            7. add mysql.dll location to PATH or copy mysql.dll to any folder of PATH
            8. enjoy
            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