sujan.dasmahapatra
30th November 2011, 18:13
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 = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("localhost");
db.setDatabaseName("test");
db.setUserName("guest");
db.setPassword("guest123");
dbok = db.open();
qDebug() << db.drivers();
qDebug() << QCoreApplication::libraryPaths();
What could be the problem . Any suggestions. Thanks Sujan
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 = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("localhost");
db.setDatabaseName("test");
db.setUserName("guest");
db.setPassword("guest123");
dbok = db.open();
qDebug() << db.drivers();
qDebug() << QCoreApplication::libraryPaths();
What could be the problem . Any suggestions. Thanks Sujan