QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success
-
Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 and check the output of your application.
As an educated guess, I think the MySQL dlls are not found when loading the plugin.
Go to the Run part of the project panel and add the path to these
.dll
files to the PATH environment variable there. -
@cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:
what should I do?
As I wrote in your other thread run your application after setting QT_DEBUG_PLUGINS and check its output
-
@cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:
@SGaist I added a new environment variable named QT_DEBUG_PLUGINS setted on 1, did I had to do it this way? the rest what should I do? I didn't say it but I work on visual studio (I don't have money for the licence:( )
The license for Qt Creator ? The tool is free.
-
@cpplegend
Since you are asking these questions and getting answers in thread https://forum.qt.io/topic/110176/build-qmysql-driver-under-windows-10-a-sample-solution-for-qsqldatabase-qmysql-driver-not-loaded, it would be really productive if you stuck to either that thread or this one. Asking the same question in different threads makes responders waste time in two places and leads to confusion. Thanks. -
@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