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.
db.setHostName("localhost");
db.setDatabaseName("test");
db.setUserName("guest");
db.setPassword("guest123");
dbok = db.open();
qDebug() << db.drivers();
db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("localhost");
db.setDatabaseName("test");
db.setUserName("guest");
db.setPassword("guest123");
dbok = db.open();
qDebug() << db.drivers();
qDebug() << QCoreApplication::libraryPaths();
To copy to clipboard, switch view to plain text mode
What could be the problem . Any suggestions. Thanks Sujan
Bookmarks