Пересобрал Visual Studio 2015
Shared x86
DOS
..\..\Src\Shared\x86\Src\configure.bat -shared -debug-and-release -platform win32-msvc2015 -c++std c++11 -prefix "..\..\..\..\..\Qt\5.7\msvc2015_shared" -opensource -confirm-license -nomake examples -nomake tests -make tools -qml-debug -opengl dynamic -system-proxies -make libs -qt-pcre -qt-libpng -qt-libjpeg -qt-zlib -qt-freetype -plugin-sql-sqlite -plugin-sql-odbc -plugin-sql-mysql -openssl OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32" OPENSSL_LIBS_RELEASE="-llibeay32MD -lssleay32MD" OPENSSL_LIBS_DEBUG="-llibeay32MDd -lssleay32MDd" -l libmysql -I "c:\Lib\include\mysql" -I "c:\Lib\include\openssl" -L "c:\Lib\Lib32_VS2015\MySQL" -L "c:\Lib\Lib32_VS2015\OpenSSL" -L "c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib"
Shared x64
DOS
..\..\Src\Shared\x64\Src\configure.bat -shared -debug-and-release -platform win32-msvc2015 -c++std c++11 -prefix "..\..\..\..\..\Qt\5.7\msvc2015_x64_shared" -opensource -confirm-license -nomake examples -nomake tests -make tools -qml-debug -opengl dynamic -system-proxies -make libs -qt-pcre -qt-libpng -qt-libjpeg -qt-zlib -qt-freetype -plugin-sql-sqlite -plugin-sql-odbc -plugin-sql-mysql -openssl OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32" OPENSSL_LIBS_RELEASE="-llibeay32MD -lssleay32MD" OPENSSL_LIBS_DEBUG="-llibeay32MDd -lssleay32MDd" -l libmysql -I "c:\Lib\include\mysql" -I "c:\Lib\include\openssl" -L "c:\Lib\Lib64_VS2015\MySQL" -L "c:\Lib\Lib64_VS2015\OpenSSL" -L "c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64"
После сборки и установки во всех файлах $Qt_Profile\lib\*d.prl заменил libmysql на libmysqld
Где libmysqld - дебаг версия библиотеки mysqlclient (Не путать с библиотекой libmysqld.lib, которая появляется при сборке MySQL)
Исправил в файле Qt\Src\qtbase\mkspecs\common\msvc-desktop.conf
QMAKE_CFLAGS_RELEASE = -O2 -MD
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi
QMAKE_CFLAGS_DEBUG = -Zi -MDd
на
QMAKE_CFLAGS_RELEASE = -O2 -MT
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi
QMAKE_CFLAGS_DEBUG = -Zi -MTd
Static x86
DOS
..\..\Src\Static\x86\Src\configure.bat -static -debug-and-release -platform win32-msvc2015 -c++std c++11 -prefix "..\..\..\..\..\Qt\5.7\msvc2015_static" -opensource -confirm-license -nomake examples -nomake tests -make tools -qml-debug -opengl dynamic -system-proxies -make libs -qt-pcre -qt-libpng -qt-libjpeg -qt-zlib -qt-freetype -qt-sql-sqlite -qt-sql-odbc -qt-sql-mysql -openssl -openssl-linked OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32" OPENSSL_LIBS_RELEASE="-llibeay32MT -lssleay32MT" OPENSSL_LIBS_DEBUG="-llibeay32MTd -lssleay32MTd" -l mysqlclient -I "c:\Lib\include\mysql" -I "c:\Lib\include\openssl" -L "c:\Lib\Lib32_VS2015\MySQL" -L "c:\Lib\Lib32_VS2015\OpenSSL" -L "c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib"
Static x64
DOS
..\..\Src\Static\x64\Src\configure.bat -static -debug-and-release -platform win32-msvc2015 -c++std c++11 -prefix "..\..\..\..\..\Qt\5.7\msvc2015_x64_static" -opensource -confirm-license -nomake examples -nomake tests -make tools -qml-debug -opengl dynamic -system-proxies -make libs -qt-pcre -qt-libpng -qt-libjpeg -qt-zlib -qt-freetype -qt-sql-sqlite -qt-sql-odbc -qt-sql-mysql -openssl -openssl-linked OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32" OPENSSL_LIBS_RELEASE="-llibeay32MT -lssleay32MT" OPENSSL_LIBS_DEBUG="-llibeay32MTd -lssleay32MTd" -l mysqlclient -I "c:\Lib\include\mysql" -I "c:\Lib\include\openssl" -L "c:\Lib\Lib64_VS2015\MySQL" -L "c:\Lib\Lib64_VS2015\OpenSSL" -L "c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64"
После сборки и установки во всех файлах $Qt_Profile\lib\*d.prl заменил mysqlclient на mysqlclientd
Где mysqlclientd - дебаг версия библиотеки mysqlclient