

I am trying to follow the instructions here, but I'm not successful yet. I don't have the file qtsqldrivers-config.pri anywhere below c:\qt. Project ERROR: Library 'mysql' is not defined. Giving up.Ĭannot read C:/qtsqldrivers-config.pri: No such file or directoryĬannot read /mkspecs/modules-inst/qt_plugin_qsqlmysql.pri: No such file or directoryĬ:/Qt/5.11.1/mingw53_32/mkspecs/features/qt_plugin.prf(81): Variable QT_PLUGINS is not defined. nf file.Įrror while parsing file C:\Qt\5.11.1\Src\qtbase\src\plugins\sqldrivers\mysql\ mysql.pro. pro file, I get the following messages:Ĭannot read C:/Qt/5.11.1/Src/qtbase/src/plugins/sqldrivers/qtsqldrivers-config.pri: No such file or directory On my system it has moved to here: C:\Qt\5.11.1\Src\qtbase\src\plugins\sqldrivers\mysql\ mysql.pro In the video, the file c:\qtSDK\4.8.1\src\plugins\sqldrivers\mysql\ mysql.pro is used.

I have run the maintenance tool, and added QT5.11.1-source.

I have watched the video, but I did not succeed yet. Program output: QSqlDatabase: QMYSQL driver not loaded QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL") ĭb.setPassword("PassOlyForForumQuestion") MainWindow::MainWindow(QWidget *parent) : GreaterThan(QT_MAJOR_VERSION, 4): QT += widgets Kit: Desktop Qt 5.11.1 MinGB 32 bit (default) MySql Router configuration: (all defaults)Ĭreate a new Qt program, with the following options: MySQL root password: "PassOlyForForumQuestion" (no user accounts) Type and networking: Config type: Development computer (all defaults) Install MySQL, with the following options: mysql-installer-web-community-8.0.11.0.msiĪpply upgrade to the mysql installer: Yes Qt Creator 4.6.2 CBD Debugger Support (default) QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQ元 QODBC QODBC3 QPSQL QPSQL7 i get the following error: QSqlDatabase: QMYSQL driver not loaded I'm trying to make a program that inserts a record into a database.
