cd %QTDIR%\src\plugins\sqldrivers\mysql qmake -o Makefile "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MySQL\lib\opt\libmysql.lib" mysql.pro nmake
cd c:/mysql/libdlltool -d ../include/libmysql.def -l ../libmysql.a libmysql.dll