QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success
-
@cpplegend Qt Creator is still free. You likely have installed a free trial of Qt which is the one requiring now a license.
-
@jsulm this is the output (I show you the whole output because it is different from the first one when I got "QMYSQL driver not loaded"): 'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\imageDB_provaDiConnessione.exe' completato. Simboli caricati.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ntdll.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\kernel32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\KernelBase.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\shell32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp_win.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ucrtbase.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\bin\Qt6Widgetsd.dll' completato. Simboli caricati.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\user32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\bin\Qt6Sqld.dll' completato. Simboli caricati.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\bin\Qt6Cored.dll' completato. Simboli caricati.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\win32u.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\gdi32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\gdi32full.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\advapi32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\vcruntime140d.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcrt.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp140d.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\vcruntime140_1d.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\sechost.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\rpcrt4.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ole32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ucrtbased.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ucrtbased.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\ucrtbased.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\combase.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\dwmapi.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ws2_32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\oleaut32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\uxtheme.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\mpr.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\bin\Qt6Guid.dll' completato. Simboli caricati.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp140_1d.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\userenv.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\authz.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\netapi32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\winmm.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\version.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\dxgi.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\d3d11.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\dcomp.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DWrite.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp140_2d.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cryptbase.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\kernel.appcore.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\srvcli.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\netutils.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\imm32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\bcryptprimitives.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\SHCore.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\windows.storage.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\WinTypes.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\shlwapi.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\profapi.dll' completato.
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/platforms/qdirect2d.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/platforms/qdirect2d.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"direct2d"
]
},
"archlevel": 2,
"className": "QWindowsDirect2DIntegrationPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/platforms/qdirect2d.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/platforms/qminimal.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/platforms/qminimal.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archlevel": 2,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/platforms/qminimal.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/platforms/qoffscreen.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/platforms/qoffscreen.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archlevel": 2,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/platforms/qoffscreen.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/platforms/qwindows.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/platforms/qwindows.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"windows"
]
},
"archlevel": 2,
"className": "QWindowsIntegrationPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/platforms/qwindows.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qdirect2d.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qdirect2d.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"direct2d"
]
},
"archlevel": 1,
"className": "QWindowsDirect2DIntegrationPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qdirect2d.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qdirect2dd.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qdirect2dd.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"direct2d"
]
},
"archlevel": 1,
"className": "QWindowsDirect2DIntegrationPlugin",
"debug": true,
"version": 394496
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("direct2d")
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qminimal.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qminimal.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archlevel": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qminimal.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qminimald.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qminimald.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archlevel": 0,
"className": "QMinimalIntegrationPlugin",
"debug": true,
"version": 394496
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qoffscreen.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qoffscreen.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archlevel": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qoffscreen.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qoffscreend.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qoffscreend.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archlevel": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": true,
"version": 394496
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindows.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindows.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"windows"
]
},
"archlevel": 0,
"className": "QWindowsIntegrationPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindows.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindowsd.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindowsd.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"windows"
]
},
"archlevel": 0,
"className": "QWindowsIntegrationPlugin",
"debug": true,
"version": 394496
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")
qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/platforms" ...
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\plugins\platforms\qwindowsd.dll' completato. Simboli caricati.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\comdlg32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\wtsapi32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\d3d9.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.22621.1635_none_270f70857386168e\comctl32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DXCore.dll' completato.
qt.core.library: "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindowsd.dll" loaded library
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\powrprof.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\umpdc.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msctf.dll' completato.
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/platformthemes" ...
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/platformthemes" ...
qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/platformthemes" ...
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\clbcatq.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\Windows.UI.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\Windows.UI.Immersive.dll' completato.
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/styles" ...
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/styles/qwindowsvistastyle.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/styles/qwindowsvistastyle.dll, metadata=
{
"IID": "org.qt-project.Qt.QStyleFactoryInterface",
"MetaData": {
"Keys": [
"windowsvista"
]
},
"archlevel": 2,
"className": "QWindowsVistaStylePlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/styles/qwindowsvistastyle.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/styles" ...
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyle.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyle.dll, metadata=
{
"IID": "org.qt-project.Qt.QStyleFactoryInterface",
"MetaData": {
"Keys": [
"windowsvista"
]
},
"archlevel": 0,
"className": "QWindowsVistaStylePlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyle.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyled.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyled.dll, metadata=
{
"IID": "org.qt-project.Qt.QStyleFactoryInterface",
"MetaData": {
"Keys": [
"windowsvista"
]
},
"archlevel": 0,
"className": "QWindowsVistaStylePlugin",
"debug": true,
"version": 394496
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windowsvista")
qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/styles" ...
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\plugins\styles\qwindowsvistastyled.dll' completato. Simboli caricati.
qt.core.library: "C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyled.dll" loaded library
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/sqldrivers" ...
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlite.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlite.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QSQLITE"
]
},
"archlevel": 2,
"className": "QSQLiteDriverPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlite.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlodbc.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlodbc.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QODBC"
]
},
"archlevel": 2,
"className": "QODBCDriverPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlodbc.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlpsql.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlpsql.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QPSQL"
]
},
"archlevel": 2,
"className": "QPSQLDriverPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlpsql.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers" ...
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlite.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlite.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QSQLITE"
]
},
"archlevel": 0,
"className": "QSQLiteDriverPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlite.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlited.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlited.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QSQLITE"
]
},
"archlevel": 0,
"className": "QSQLiteDriverPlugin",
"debug": true,
"version": 394496
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QSQLITE")
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbc.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbc.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QODBC"
]
},
"archlevel": 0,
"className": "QODBCDriverPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbc.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbcd.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbcd.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QODBC"
]
},
"archlevel": 0,
"className": "QODBCDriverPlugin",
"debug": true,
"version": 394496
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QODBC")
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsql.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsql.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QPSQL"
]
},
"archlevel": 0,
"className": "QPSQLDriverPlugin",
"debug": false,
"version": 394496
}qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsql.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsqld.dll"
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsqld.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QPSQL"
]
},
"archlevel": 0,
"className": "QPSQLDriverPlugin",
"debug": true,
"version": 394496
}qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QPSQL")
qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/sqldrivers" ...
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC QPSQL
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\WindowsCodecs.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\thumbcache.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\policymanager.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp110_win.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5b6e4554b945d508\nvldumdx.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msasn1.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cryptnet.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\crypt32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\drvstore.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\devobj.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cfgmgr32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cfgmgr32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cfgmgr32.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\cfgmgr32.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\cfgmgr32.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\wldp.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\wintrust.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\imagehlp.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cryptsp.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\rsaenh.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\bcrypt.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5b6e4554b945d508\nvd3dumx.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\directxdatabasehelper.dll' completato.
Il thread 0xa2c รจ terminato con il codice 0 (0x0).
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ResourcePolicyClient.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\ResourcePolicyClient.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5b6e4554b945d508\nvd3dumx.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\drvstore.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\cfgmgr32.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\devobj.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\wldp.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5b6e4554b945d508\nvldumdx.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DataExchange.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\twinapi.appcore.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\TextInputFramework.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\CoreMessaging.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\CoreUIComponents.dll' completato.
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/accessible" ...
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/accessible" ...
qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/accessible" ...
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/accessiblebridge" ...
qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/accessiblebridge" ...
qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/accessiblebridge" ...
'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ExplorerFrame.dll' completato.
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\imagehlp.dll' completato
'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\wintrust.dll' completato
Il thread 0x2938 รจ terminato con il codice 0 (0x0). -
@cpplegend Instead posting all this stuff you could have searched for mysql in the output by yourself and would have seen that there is no mysql plugin loaded. So you either did not build it or it was build but not copied to the sqldriver plugin directory.
-
@Christian-Ehrlicher I have seen it, it is in the plugin folder, plugin folder is in the mingw folder...I also tried to put the sqldrivers folder into: C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\sqldrivers... I have in this folder these files:
"qsqlite.debug"
"qsqlite.dll"
"qsqlmysql.debug"
"qsqlmysql.dll"
"qsqlodbc.debug"
"qsqlodbc.dll"I simply don't understand what I should do, could you explain the right process? I know I am boring I have been asking here for days..but I really need to understand
-
You see where Qt is searching for plugins so put the compiled mysql plugin to this folder and see what happens... really that hard?
-
@cpplegend
I am not an expert in this area, but just by looking at the output it shows you I would think you may have 2 areas to address:- You can see it is looking for plugins in directory
C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers
. You say you have copied files to directoryC:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\sqldrivers
. How do you expect Qt program to know you have put files there? @Christian-Ehrlicher wrote
it was build but not copied to the sqldriver plugin directory
- You seem to have built a debug version of the plugin library. I would assume the others were built for release, and you may need to do the same.
- You can see it is looking for plugins in directory
-
This post is deleted!
-
@JonB I tried and it didn't work, as you can see it says: qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QPSQL")
qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/sqldrivers" ...
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC QPSQLthen I tried to put the plugins into this folder and it said that those are incompatible...
-
@cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:
it said that those are incompatible...
Did you do anything about my suggestion that a Debug version of the DLL may not be acceptable/loadable and you should try a Release version?
Otherwise you might copy & paste the actual message rather than telling us "it said that those are incompatible...".
-
@cpplegend
Some things you are really supposed to figure for yourself. Or if necessary look up in Help. In Creator you choose which configuration to build. You apparently currently have it on "Debug". You should change that to "Release" and rebuild. Note that the resulting DLL will no longer be in the.../x64/Debug/sqldrivers
directory used when building for debug, if you need to copy the built file(s) you will need to copy from the new location. -
@cpplegend on the one hand you have posted a list of plugins plugins that clearly are in MinGW format (telling from .debug file extension), but on the other hand you posted paths containing msvc2019_64. You need to use the correct plugins for the compiler you use
-
@JonB @thecodemonkey I really feel so stupid when you talk you obviously know more on this topic than me, please could you explain what I have to do because I am not understanding anything. what should I do now? should I download any other file? I am really sick of this plugin but I need to understand... I know I am boring, I always say the same thing, but it's because I don't understand, it's so difficult..if it is just coding I learn pretty fast, but these things are new to me
-
@cpplegend you can use different C++ compilers with Qt. On Windows by default these are Microsoft Visual C++ or MinGW. During Installation in Qt maintenance tool you choose if you install the Qt version for MSVC or for MinGW (or both):
.
If you are a beginner, I recommend to install only one of them to avoid confusion. In Qt Creator under "Projects" you should be able to see, which Qt version is used for the current project:
depending on that, you need to copy the correct qsqlmysql.dll (plus libmysql.dll):
If it's MSVC2019 then for example copy the files from https://github.com/thecodemonkey86/qt_mysql_driver/files/11768056/qsqlmysql.dll_Qt_SQL_driver_6.5.1_MSVC2019_64-bit.zip,
if MinGW then the files from https://github.com/thecodemonkey86/qt_mysql_driver/files/11768059/qsqlmysql.dll_Qt_SQL_driver_6.5.1_MinGW_11.2.0_64-bit.zip
to sqldrivers folder and application folder respectively
-
@thecodemonkey sqldrivers from plugin folder in src from qtbase folder, right? and then as you Said the Application folder of the Project I am creating, is it right?
-
@cpplegend by application folder I mean the folder, where the compiler creates the .exe file of your project, like this:
the sqldrivers folder can be either a subdirectory of the application folder (like this:
) ,or in the installation binary folder of Qt. On my system that would be for
MSVC: C:\Qt\6.5.1\msvc2019_64\plugins\sqldrivers (and for MinGW: C:\Qt\6.5.1\mingw_64\plugins\sqldrivers)both options (application folder and installation folder) should work
-
@thecodemonkey ok when I return home I will try
-
@thecodemonkey now when I include the QSqlDatabase header file these errors occures: :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x3b): undefined reference to
__imp__ZN12QSqlDatabaseD1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x8b): undefined reference to
__imp__ZN12QSqlDatabaseD1Ev'
:-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0xef): undefined reference to__imp__ZN12QSqlDatabaseD1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x14f): undefined reference to
__imp__ZN12QSqlDatabaseD1Ev'
:-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x1a9): undefined reference to__imp__ZN12QSqlDatabaseC1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x1ee): undefined reference to
__imp__ZN12QSqlDatabaseD1Ev'
:-1: error: collect2.exe: error: ld returned 1 exit status
:-1: error: ninja: build stopped: subcommand failed.