user925861
user925861

Reputation:

Qt 4.8.0 - MySQL Driver not listed

After reading this tutorial http://www.pikopong.com/blog/2011/07/11/how-to-enable-mysql-support-in-qt-sdk-for-windows-part-2/ I was able to successfully built the mysql lib for Qt. But somehow it is not listed in the available drivers list, although I copied the files in the right directory.

This is how my Qt-plugins\sqldrivers directory looks like now :

C:\QtSDK\Desktop\Qt\4.8.0\mingw\plugins\sqldrivers

And this is what QSqlDatabase::drivers() say :

("QSQLITE", "QODBC3", "QODBC")

Is there something essential missing? Thank you for your help in advance and happy holidays!

Upvotes: 4

Views: 2191

Answers (1)

user925861
user925861

Reputation:

I solved the problem by following the instructions in this guide: http://christopher.rasch-olsen.no/2009/04/14/qt-45-and-mysql-plugin-with-mingw-on-windows-xp/ This was posted as a solution to the same problem (See Karlson's comment)

Upvotes: 1

Related Questions