View Full Version : Database connection problem

4th September 2008, 09:24
Hi to all!

I've upgraded to 4.4.1 and my app cannot start because of following error:
warning: QSqlDatabase: QMYSQL driver not loaded
warning: QSqlDatabase: available drivers: QSQLITE QMYSQL3 QMYSQL QODBC3 QODBC

I've compiled mysql plugin and copied it to all places where is needed (libmysql*.dll) but it still does not work. Any help please?

11th September 2008, 20:18
You have a static Qt library?

Then add the following macro to your cpp file:


and in your .pro file:

QTPLUGIN += qmysql