![qt mysql driver not loaded windows qt mysql driver not loaded windows](https://inotgo.com/imagesLocal/202102/08/20210208090155730A_1.png)
D:\qt\src\sqldrivers is the sql driver project dir and D:\qt\src\mysql-connector-c-x.y.z-win圆4 is the MySQL connector library directory, so that there are D:\qt\src\mysql-connector-c-x.y. processing : the prompt indicates that the database Driver ‘has been deprecated and should be used as a new Driver.
QT MYSQL DRIVER NOT LOADED WINDOWS ZIP FILE
pro file from this repository by default expects the contents of the zip file from to be in the same base directory as the sql driver projectĮ.g.
![qt mysql driver not loaded windows qt mysql driver not loaded windows](https://ddgobkiprc33d.cloudfront.net/7ab56c96-4f36-4ce0-9f09-6106c53f837a.png)
(find it in the build folder) libmysql.dll is coming from the 'MySQL Router 8.0' or 'MySQL Server 8.0' or another vision.
![qt mysql driver not loaded windows qt mysql driver not loaded windows](https://myprogrammingnotes.com/wp-content/uploads/2020/03/img_5e66152de920e.png)
Get precompiled qsqlmysql.dll for Windows / libqsqlmysql.so for Linux from releases Download qsqlmysql. Since the Qt Company currently doesn't give a crap on providing qsqlmysql.dll / libqsqlmysql.so in binary form, you have to build it on your own, which can be a pain. Typical symptom: QMYSQL driver not loaded -> get pre-built Qt SQL driver plug-in required to connect QSqlDatabase to MySQL / MariaDB with QSqlDatabase::addDatabase('QMYSQL').