Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QSqlDatabase: QMYSQL driver not loaded, QSqlDatabase: available drivers: /*empty,*/



  • Hi everyone, I am trying to get a connection with MySql, however not only I fail to do that, but also no drivers are detected at all. I saw this topic, but I instantiate QApplication prior to opening a connection, as follows:

    #include <iostream>
    #include <QtSql>
    
    int main(int argc, char* argv[]) {
    	QApplication a(argc, argv);
    	MainWindow w;
    	w.show();
    
    	QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
    	db.setHostName("127.0.0.1");
    	db.setDatabaseName("myDBname");
    	db.setUserName("myUser");
    	db.setPassword("myPassword");
    	std::cout << db.open() << std::endl;
    
    	return QApplication::exec();
    }
    

    Still I get a negative result:

    0
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers:
    Process finished with exit code 0
    

    Note: I use CLion, CMakeList.txt (here I have specified "find_package(Qt5Sql REQUIRED)" and "target_link_libraries(${PROJECT_NAME} Qt5::Sql)")

    I would be extremely grateful if someone helped me asap.


  • Lifetime Qt Champion

    @ukman_st This is asked again and again.
    As often suggested: start your app with QT_DEBUG_PLUGINS set to 1 and check the output (you can post it here).



  • Thank you for your attention, there's a lot:

    D:\ATM\cmake-build-debug\ATM.exe
    Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
       QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
       QT_SCREEN_SCALE_FACTORS to set per-screen DPI.
       QT_SCALE_FACTOR to set the application global scale factor.
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.1/mingw81_64/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qdirect2d.dll"
    Found metadata in lib C:/Qt/5.15.1/mingw81_64/plugins/platforms/qdirect2d.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "direct2d"
            ]
        },
        "archreq": 0,
        "className": "QWindowsDirect2DIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("direct2d")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qminimal.dll"
    Found metadata in lib C:/Qt/5.15.1/mingw81_64/plugins/platforms/qminimal.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "archreq": 0,
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qoffscreen.dll"
    Found metadata in lib C:/Qt/5.15.1/mingw81_64/plugins/platforms/qoffscreen.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "archreq": 0,
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qwindows.dll"
    Found metadata in lib C:/Qt/5.15.1/mingw81_64/plugins/platforms/qwindows.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "windows"
            ]
        },
        "archreq": 0,
        "className": "QWindowsIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("windows")
    QFactoryLoader::QFactoryLoader() checking directory path "D:/ATM/cmake-build-debug" ...
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/d3dcompiler_47.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/d3dcompiler_47.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libEGL.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libEGL.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libgcc_s_seh-1.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libgcc_s_seh-1.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libGLESv2.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libGLESv2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libmysql.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libmysql.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libmysqld.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libmysqld.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libstdc++-6.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libstdc++-6.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libwinpthread-1.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libwinpthread-1.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/opengl32sw.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/opengl32sw.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DAnimation.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DAnimation.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DCore.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DCore.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DExtras.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DExtras.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DInput.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DInput.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DLogic.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DLogic.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuick.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuick.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickAnimation.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickAnimation.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickExtras.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickExtras.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickInput.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickInput.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickRender.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickRender.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickScene2D.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickScene2D.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DRender.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DRender.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Bluetooth.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Bluetooth.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Concurrent.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Concurrent.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Core.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Core.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5DBus.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5DBus.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Designer.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Designer.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5DesignerComponents.dll"
    Found metadata in lib D:/ATM/cmake-build-debug/Qt5DesignerComponents.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QDesignerFormEditorPluginInterface",
        "archreq": 0,
        "className": "TabOrderEditorPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Gamepad.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Gamepad.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Gui.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Gui.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Help.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Help.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Location.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Location.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Multimedia.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Multimedia.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5MultimediaQuick.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5MultimediaQuick.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5MultimediaWidgets.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5MultimediaWidgets.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Network.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Network.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Nfc.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Nfc.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5OpenGL.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5OpenGL.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Positioning.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Positioning.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5PositioningQuick.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5PositioningQuick.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5PrintSupport.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5PrintSupport.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Qml.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Qml.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QmlModels.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QmlModels.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QmlWorkerScript.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QmlWorkerScript.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Quick.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Quick.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickControls2.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickControls2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickParticles.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickParticles.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickShapes.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickShapes.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickTemplates2.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickTemplates2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickTest.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickTest.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickWidgets.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickWidgets.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5RemoteObjects.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5RemoteObjects.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Scxml.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Scxml.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Sensors.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Sensors.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5SerialBus.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5SerialBus.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5SerialPort.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5SerialPort.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Sql.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Sql.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Svg.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Svg.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Test.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Test.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5TextToSpeech.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5TextToSpeech.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5WebChannel.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5WebChannel.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5WebSockets.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5WebSockets.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Widgets.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Widgets.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5WinExtras.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5WinExtras.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Xml.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Xml.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5XmlPatterns.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5XmlPatterns.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.1/mingw81_64/plugins/platforms/platforms" ...
    QFactoryLoader::QFactoryLoader() checking directory path "D:/ATM/cmake-build-debug/platforms" ...
    loaded library "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qwindows.dll"
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.1/mingw81_64/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qdirect2d.dll"
    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qminimal.dll"
    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qoffscreen.dll"
    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qwindows.dll"
    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() checking directory path "D:/ATM/cmake-build-debug" ...
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/d3dcompiler_47.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/d3dcompiler_47.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libEGL.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libEGL.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libgcc_s_seh-1.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libgcc_s_seh-1.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libGLESv2.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libGLESv2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libmysql.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libmysql.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libmysqld.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libmysqld.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libstdc++-6.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libstdc++-6.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/libwinpthread-1.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/libwinpthread-1.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/opengl32sw.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/opengl32sw.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DAnimation.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DAnimation.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DCore.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DCore.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DExtras.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DExtras.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DInput.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DInput.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DLogic.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DLogic.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuick.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuick.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickAnimation.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickAnimation.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickExtras.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickExtras.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickInput.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickInput.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickRender.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickRender.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DQuickScene2D.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DQuickScene2D.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt53DRender.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt53DRender.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Bluetooth.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Bluetooth.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Concurrent.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Concurrent.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Core.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Core.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5DBus.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5DBus.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Designer.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Designer.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5DesignerComponents.dll"
    Found metadata in lib D:/ATM/cmake-build-debug/Qt5DesignerComponents.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QDesignerFormEditorPluginInterface",
        "archreq": 0,
        "className": "TabOrderEditorPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Gamepad.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Gamepad.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Gui.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Gui.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Help.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Help.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Location.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Location.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Multimedia.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Multimedia.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5MultimediaQuick.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5MultimediaQuick.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5MultimediaWidgets.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5MultimediaWidgets.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Network.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Network.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Nfc.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Nfc.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5OpenGL.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5OpenGL.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Positioning.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Positioning.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5PositioningQuick.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5PositioningQuick.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5PrintSupport.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5PrintSupport.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Qml.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Qml.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QmlModels.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QmlModels.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QmlWorkerScript.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QmlWorkerScript.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Quick.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Quick.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickControls2.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickControls2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickParticles.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickParticles.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickShapes.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickShapes.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickTemplates2.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickTemplates2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickTest.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickTest.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5QuickWidgets.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5QuickWidgets.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5RemoteObjects.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5RemoteObjects.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Scxml.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Scxml.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Sensors.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Sensors.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5SerialBus.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5SerialBus.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5SerialPort.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5SerialPort.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Sql.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Sql.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Svg.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Svg.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Test.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Test.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5TextToSpeech.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5TextToSpeech.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5WebChannel.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5WebChannel.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5WebSockets.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5WebSockets.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Widgets.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Widgets.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5WinExtras.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5WinExtras.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5Xml.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5Xml.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "D:/ATM/cmake-build-debug/Qt5XmlPatterns.dll"
    "Failed to extract plugin meta data from 'D:/ATM/cmake-build-debug/Qt5XmlPatterns.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.1/mingw81_64/plugins/platforms/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "D:/ATM/cmake-build-debug/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.1/mingw81_64/plugins/platforms/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "D:/ATM/cmake-build-debug/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.1/mingw81_64/plugins/platforms/accessible" ...
    QFactoryLoader::QFactoryLoader() checking directory path "D:/ATM/cmake-build-debug/accessible" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.1/mingw81_64/plugins/platforms/sqldrivers" ...
    0
    QFactoryLoader::QFactoryLoader() checking directory path "D:/ATM/cmake-build-debug/sqldrivers" ...
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers:
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.1/mingw81_64/plugins/platforms/accessiblebridge" ..
    .
    QFactoryLoader::QFactoryLoader() checking directory path "D:/ATM/cmake-build-debug/accessiblebridge" ...
    QLibraryPrivate::unload succeeded on "C:/Qt/5.15.1/mingw81_64/plugins/platforms/qwindows.dll"
    
    Process finished with exit code 0
    
    

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    From the logs, it seems you have some mix between your Qt installation and some of the libraries that seem to be deployed with your application. You should clean the build folder and start again.

    In any case, since you are using MySQL, please take a look at the recent threads that have the same topic. We have at least one per week these last months. And it always boils down to: the pre-built binary can't currently ship the plugin because Oracle changed their licenses. You have to build it yourself following the documentation. And if you want to be clear in terms of licenses, you should consider using MariaDB.



  • ok, thank you


Log in to reply