All Projects → thecodemonkey86 → qt_mysql_driver

thecodemonkey86 / qt_mysql_driver

Licence: other
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"). Download qsqlmysql.dll binaries built from official Qt source code

Projects that are alternatives of or similar to qt mysql driver

QUaServer
Qt C++ wrapper for open62541 server stack
Stars: ✭ 78 (-23.53%)
Mutual labels:  qt5
UniDLL
Editor window to create DLLs from C# code in Unity
Stars: ✭ 45 (-55.88%)
Mutual labels:  dll
tenplayer
Modern Music Player for Linux
Stars: ✭ 18 (-82.35%)
Mutual labels:  qt5
dannyAVgleDownloader
知名網站avgle下載器
Stars: ✭ 27 (-73.53%)
Mutual labels:  qt5
screenshotgun
Open cross-platform screenshoter with cloud support and server part
Stars: ✭ 23 (-77.45%)
Mutual labels:  qt5
vue-cli-plugin-dll
Vue CLI 3 plugin for Webpack DllPlugin/DllReferencePlugin
Stars: ✭ 77 (-24.51%)
Mutual labels:  dll
ProductManagementTool
Advanced Product tracking automation system using Qt 5 and C++
Stars: ✭ 39 (-61.76%)
Mutual labels:  qt5
textureldr
open source, integrated texture pack management system for geometry dash
Stars: ✭ 30 (-70.59%)
Mutual labels:  dll
QtExamples
Translations of the official Qt examples into PyQt5 (also PySide2) and more.
Stars: ✭ 39 (-61.76%)
Mutual labels:  qt5
capture3
C++ research project to learn more about cameras, image processing, color spaces, OpenCV and multi‑threading.
Stars: ✭ 17 (-83.33%)
Mutual labels:  qt5
foo drpc
Foobar2000 music status for Discord Rich Presence!
Stars: ✭ 83 (-18.63%)
Mutual labels:  dll
ng-qt
Build extremely powerful and efficient native cross-platform desktop applications using Angular and NodeGUI
Stars: ✭ 14 (-86.27%)
Mutual labels:  qt5
Spotify-Internal
Remove ads and add extra features for spotify desktop version.
Stars: ✭ 25 (-75.49%)
Mutual labels:  dll
Swiftly
Swiftly is an easy to use Qt/C++ web framework
Stars: ✭ 20 (-80.39%)
Mutual labels:  qt5
touchockey
QtQuick2 hockey game using mobile browsers as game controller
Stars: ✭ 22 (-78.43%)
Mutual labels:  qt5
DLL-Injector
Inject and detour DLLs and program functions both managed and unmanaged in other programs, written (almost) purely in C#. [Not maintained].
Stars: ✭ 29 (-71.57%)
Mutual labels:  dll
cmmk ctrl
Qt based RGB control application for MasterKeys devices
Stars: ✭ 24 (-76.47%)
Mutual labels:  qt5
xyz-qgis-plugin
Plugin for QGIS to connect to the HERE XYZ Hub API
Stars: ✭ 22 (-78.43%)
Mutual labels:  qt5
VARGEN
Сheat for CS:GO. Based on Osiris - https://github.com/danielkrupinski/Osiris
Stars: ✭ 12 (-88.24%)
Mutual labels:  dll
pymadcad
Simple yet powerful CAD (Computer Aided Design) library, written with Python.
Stars: ✭ 63 (-38.24%)
Mutual labels:  qt5

Typical symptom when trying to connect to MySQL / MariaDB using Qt but without the necessary plugin is the runtime error


 QSqlDatabase: QMYSQL driver not loaded
 QSqlDatabase: available drivers: QMYSQL

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. Here is a build for various Qt versions. Get precompiled qsqlmysql.dll for Windows / libqsqlmysql.so for Linux from releases

Latest Qt version: Download for Qt 6.2.3 here

Deployment

  1. put qsqlmysql.dll (if release build) / qsqlmysqld.dll (if debug build, but note that when using MinGW 8.1.0 the debug build is named qsqlmysql.dll as well) in application subdirectory "sqldrivers"
  2. put libmysql.dll (the MySQL library itself) and the OpenSSL v1.1 libraries, libcrypto-1_1 and libssl-1_1, in your application dir

If you want to use this repository for compiling it yourself: Building hints

  • Unlike the original .pro file this project can be built in Qt Creator (currently works on Windows only), 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/v8.0 (not C++): https://downloads.mysql.com/archives/c-c/?version=6.1.11&os=src / https://dev.mysql.com/downloads/mysql/5.5.html?os=3&version=5
  • 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-x.y.z-winx64 is the MySQL connector library directory, so that there are D:\qt\src\mysql-connector-c-x.y.z-winx64\include and \lib subdirs
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].