Qt5.15编译mysql驱动
时间:2021-07-01 10:21:17
帮助过:12人阅读
+= $$PWD/
qsql_mysql_p.h
SOURCES += $$PWD/qsql_mysql.cpp $$PWD/
main.cpp
#QMAKE_USE +=
mysql
OTHER_FILES +=
mysql.json
INCLUDEPATH +=
"C:\Program Files (x86)\mysql-5.7.26-win32\include"
LIBS +=
"C:\Program Files (x86)\mysql-5.7.26-win32\lib\libmysql.lib"
PLUGIN_CLASS_NAME =
QMYSQLDriverPlugin
include(../qsqldriverbase.pri)
3、编译即可,文件生成在C盘根目录,复制到相应的编译器目录即可
Qt5.15编译mysql驱动
标签:TBase mysq plugin include span head ade class tor