another MySQL issue (win10-64b / QT 5.13.0-32b / MinGW 7.3-32b)
-
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
-
@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.
-
@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
-
@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...
-
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.- cmd.exe
- cd %QTDIR%\5.11.1\Src\qtbase\src\plugins\sqldrivers
- qmake MYSQL_INCDIR="path to mysql.h folder" MYSQL_LIBDIR="path to mysql.dll folder"
- ignore output (it will say "No" to MySQL", that happened in my case)
- mingw32-make
- mingw32-make install
- add mysql.dll location to PATH or copy mysql.dll to any folder of PATH
- enjoy