Unsolved After build and install MySql driver for Qt it's unable to load the MySql Drive
-
@Malibob In the screen shot you did not build and install anything. You only called qmake. Did you also call make/make install?
-
This post is deleted! -
@jsulm
Yes I did make/make install. If any problem in MySql version? -
@Malibob You can use https://www.dependencywalker.com/ to check whether something is missing for the MySQL plug-in DLL.
-
@jsulm
I'm using 64bit windows, Qt creator version 32-bit, mingw81_64 and MySql 64 bit. What are the .dll s that i want to use and where? I'm confused with this .dll stuff -
Your mysql driver has to be accessed by the compiler you are using. Put it in the bin directory of mingw
--James
-
@JSher Thank you for reply. Did You mean put libmysql.dll and libmysql.lib in to mingw's bin? it doesn't work. I'm new to programming. So this may be silly question
-
I would download mysql connector 6.1(last one with prebuilt libmysql.dll and use it to be sure you did not mess up the build.
If that does not work open creator, click projects on left side, switch top to debug and add a Build Environment entry called QT_DEBUG_PLUGINS and set it to 1. Then run in debug mode and read through the module load trace to see where it is loading what module from and whether it is able to load what it is looking for.
--James
-
@JSher said in After build and install MySql driver for Qt it's unable to load the MySql Drive:
Your mysql driver has to be accessed by the compiler you are using. Put it in the bin directory of mingw
What?!
This is not necessary at all! -
@Malibob Open qsqlmysql.dll in DependencyWalker and see whether something is missing (especially the MySQL client lib).
-
@jsulm Ther is no qsqlmysql.dll anywhere
-
@Malibob There is - in your Qt installation: on my machine it is in c:\Qt\5.11.1\mingw53_32\plugins\sqldrivers
-
@jsulm I got this.
Is it make any sence -
@Malibob From that screen-shot I can't say. Please collapse all MS DLLs. Especially check whether the MySQL client lib is found.
-
@jsulm There is no MySQL client lib collapse