![python qsqldatabase qsqlite driver not loaded python qsqldatabase qsqlite driver not loaded](https://img-blog.csdnimg.cn/20200108211831745.png)
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)
#Python qsqldatabase qsqlite driver not loaded install
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.