After build and install MySql driver for Qt it's unable to load the MySql Drive
-
I'm already build and install the MySql drive like
But still I got the error message QMYSQL driver not loaded. Now it;s say MySql as a available driver. I'm using 64bit windows, Qt creator version 32-bit, mingw81_64 and MySql 64 bit Error is," QMYSQL driver not loaded. available drivers: QSQLITE QMARIADB QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7"
How can I solve this? -
@Malibob You can use https://www.dependencywalker.com/ to check whether something is missing for the MySQL plug-in DLL.
-
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!