Yeah hello there, I'm really new here.
So here's the problem.
QSqlDatabase: available drivers
: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
To copy to clipboard, switch view to plain text mode
I've checked many forums already and have done things so far:
1) This is my .pro file
QT += core
QT += sql
QT -= gui
TARGET = DB
CONFIG += console
CONFIG -= app_bundle
QTPLUGIN += QSQLMYSQL
TEMPLATE = app
SOURCES += main.cpp
QT += core
QT += sql
QT -= gui
TARGET = DB
CONFIG += console
CONFIG -= app_bundle
QTPLUGIN += QSQLMYSQL
TEMPLATE = app
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
2) This is my sqldrivers folder:
alex@alex-Laptop:~/Programming/Qt/5.1.0/gcc_64/plugins/sqldrivers$ ls
libqsqlite.so libqsqlmysql.so libqsqlpsql.so
alex@alex-Laptop:~/Programming/Qt/5.1.0/gcc_64/plugins/sqldrivers$ ls
libqsqlite.so libqsqlmysql.so libqsqlpsql.so
To copy to clipboard, switch view to plain text mode
3) Have also copied sqldrivers folder to project folder.
Non of these helped an error still exists.
I have read almost everything about my problem but nothing helped.
Please help newbie with the fix.
Thanks in advance
Bookmarks