且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Qt 5.8 SQL连接错误:Windows 10上未加载QMYSQL驱动程序

更新时间:2022-03-24 22:24:08

libmysql.dll有64位和32位版本. 重建Qt驱动程序是不是必须的.

There are 64 bit and 32 bit versions of libmysql.dll. rebuilding the Qt Driver is NOT a must.

使用Qt5.9.1的预构建版本,您仍然需要使用32位版本,即使在64版本的MySQL安装中也可以使用.无需重建任何QT插件或组件. 在此处下载32位MySQL连接器

With the prebuilt version of Qt5.9.1, you still need to use the 32 bit version, it worked even with the 64 version of MySQL installation. without any rebuild of QT plugins or components. Download 32 bit MySQL connector here

此问题已在此处得到解答: medasumanth答案

This was already answered here: medasumanth answer