PDA

View Full Version : Qt and myQSL connection.



pratham_shah
15th November 2012, 11:00
Hi,
I have an application that uses MySql as database.
when i build and run the application in release mode the application works just fine, but when i build it in debug mode the application while using QSqlDatabase::addresource() give QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE.
I have included the qsqlmysqld4.dll in a folder named sqldrivers where my debug exe is.

Am I missing something ?

anda_skoa
19th November 2012, 15:42
Have you tried renaming the DLL file to not end in "d". maybe that does not work for plugins.

Cheers,
_

Gokulnathvc
21st November 2012, 06:53
Please check your include & lib paths.