编译环境:Qt4.8.4MySQL:mysql-5.1.35-win32.msi我在QtCreator下试用了是OK的,大家下载解压后按说明拷贝到相关目录就可以使用了,省去了编译的麻烦,希望给大家带来方便1.将“libqsqlmysql4.a”“libqsqlmysqld4.a”“qsqlmysql4.dll”“qsqlmysqld4.dll”文件拷贝到Qt\4.8.4\plugins\sqldrivers目录下2.将“qsqlmysql4.dll”“qsqlmysqld4.dll”文件拷贝到Qt\4.8.4\bin目录下3.将“qsqlmysql4.dll”“qsqlmysqld4.dll”“libmysql.dll”文件拷贝到\Qt\