Skip to content

Prebuilt Qt MySQL SQL driver library required to connect QSqlDatabase to MySQL with QSqlDatabase::addDatabase("QMYSQL"). Download qsqlmysql.dll binaries built from official Qt source code

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.LGPLv21
Unknown
LICENSE.LGPLv3
Notifications You must be signed in to change notification settings

jasonhawk/qt_mysql_driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Since the Qt Company currently doesn't give a crap on providing qsqlmysql.dll in binary form, you have to build it on your own, which can be a pain. Here is a build for various Qt versions. Download precompiled qsqlmysql.dll from https://github.com/thecodemonkey86/qt_mysql_driver/releases

Deployment

  1. in application subdirectory "sqldrivers" qsqlmysql.dll (Release) / qsqlmysqld.dll (Debug)
  2. the MySQL library itself libmysql.dll

Building hints

  • Unlike the original .pro file this project can be built in Qt Creator, the source code is however unchanged
  • See branches by Qt version for source code
  • Make sure you link against the official MySQL C Connector v6.1 (not C++): https://downloads.mysql.com/archives/c-c/?version=6.1.11&os=src
  • The .pro file from this repository by default expects the contents of the zip file from mysql.com to be in the same base directory as the sql driver project e.g. D:\qt\src\sqldrivers is the sql driver project dir and D:\qt\src\mysql-connector-c-6.1.11-win32 is the MySQL connector library directory, so that there are D:\qt\src\mysql-connector-c-6.1.11-win32\include and \lib subdirs

About

Prebuilt Qt MySQL SQL driver library required to connect QSqlDatabase to MySQL with QSqlDatabase::addDatabase("QMYSQL"). Download qsqlmysql.dll binaries built from official Qt source code

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.LGPLv21
Unknown
LICENSE.LGPLv3

Stars

Watchers

Forks

Packages

No packages published