Actually libmysql file is not there in the Qt installed location
Actually libmysql file is not there in the Qt installed location
This has been discussed many times in this forum and the link from 'unit' contains all the information you need, please read it.
Also, remember that you need to install the MySQL development files (library and include files).
After building the plugin, the libs will be located in:
\Qt\<Qt version>\qt\plugins\sqldrivers
at least that's the location for Qt sdk on XP with mingw.
I don't know if the OP got this issue resolved, but I'd like to add an extra piece of info for anybody else struggling with this. Make sure that you either add the path to MySQL's lib directory to your PATH or drop the libmysql.dll into the same directory as your executable. I spent hours of compiling, recompiling, installing, and uninstalling stuff thinking I had done something wrong, just to find out the DLL dependency was my issue. Hope this saves somebody else the trouble.
Bookmarks