Dear Friends

I have just configured Qt 4.7.0 for mysql with -qt-sql-mysql and plugin-sql-mysql option.. It has been successful and when I am compiling src/plugin/mysql project it has been successful in creating the qsqlmysql4.dll and qsqlmysql4d.dll and .a files for both.

When I am trying to load the QMYSQL from my program, its showing QMYSQL driver not loaded.

Qt Code:
  1. db = QSqlDatabase::addDatabase("QMYSQL");
  3. db.setHostName("localhost");
  4. db.setDatabaseName("test");
  5. db.setUserName("guest");
  6. db.setPassword("guest123");
  7. dbok =;
  9. qDebug() << db.drivers();
  10. qDebug() << QCoreApplication::libraryPaths();
To copy to clipboard, switch view to plain text mode 

What could be the problem . Any suggestions. Thanks Sujan