且构网

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

qt 5.8 sql 连接错误:QMYSQL 驱动程序未在 Windows 10 上加载

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

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 答案