Qt 5.2 with MySQL driver not loaded

Hi, Ive downloaded and installed Qt 5.2 32 bit for Android, my machine is Windows 8 64bit, I also have Visual Studio 2012 installed, MySQL 5.6.16 32bit is installed.

I try to connect to MySQL database but always get this error

QSqlDatabse: QMYSQL driver not loaded QSqlDatabse: Available drivers: QSQLIT QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7

Here is my code

#include <QCoreApplication>
#include <QtSql>
#include <QtDebug>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
    return a.exec();
}

C:\Program Files\MySQL\MySQL Server 5.6\lib PATH Qt Creator. , Qt 5.2 , Iv , , , . , , . .

+3
1

, MySQL Windows (x86-32bit), 32bit, (5.6 64bit) , 5.6 32 , 5.5 32bit , .

.

+3

All Articles