PDA

View Full Version : QMYSQL: The specified module could not be found



jonny_wonny
22nd November 2009, 01:28
Just yesterday I recompiled Qt with MySQL support, and it was working fine, until now... when it just stopped loading. At first I was really confused because it said it wasn't loading, but the driver still showed up in the list. After delete the cache from the registry the QMYSQL entry now no longer shows up the the available drivers list, however my problem still remains. Both libqsqlmysql4.a and qsqlmysql4.dll are still in the plugins folder.

I set the QT_DEBUG_PLUGINS environment variable to get more information, and all it says is: "qsqlmysqld.dll: The specified module cannot be found." I'm not sure what specifically that is referring to.

I'm using Qt 4.5.3 on Windows 7.

Any help would be greatly appreciated!

Thanks!

EDIT:
Well, I fixed it. I had to change from debug mode to release mode, and then I had to put libmysql.dll in the same directory as the executable, which is strange because the mysql bin folder was in the path environment variable. Oh well, I'm not going to try to analyze it...