But unfortunately this connector does not distributed with Qt, so you should provide it by yourself.
Prior to reconfiguration, make sure you remove any leftovers from the previous build. reload creator and voila your mysql driver is perfectly loaded So basically for those who want to understand what happened here: That 'qsqlmysql' plugin is basically a qt interface that uses mysql-C connector methods. Once everything is built, you must run 'mingw32-make install'. Info: creating stash file C:\Qt5\5.13.2\Src\qtbase\src\plugins\sqldrivers\.qmake.stashĭB2 (IBM). Using Qt version 5.13.2 in C:/Qt5/5.13.2/mingw73_64/libĬ:\Qt5\5.13.2\Src\qtbase\src\plugins\sqldrivers>qmake - MYSQL_INCDIR="C:/Program Files/MySQL/MySQL Connector C 6.1/include" MYSQL_LIBDIR="C:/Program Files/MySQL/MySQL Connector C 6.1/lib" 比如我的,libmysql.dll路径就在:C:\Program Files\MySQL\MySQL Server 8.0\lib。
然后发出了QSqlDatabase: QMYSQL driver not loaded的警告。