Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT is not able to connect to MySQL.

QT is not able to connect to MySQL.

Scheduled Pinned Locked Moved Unsolved General and Desktop
36 Posts 6 Posters 12.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jsulmJ jsulm

    @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

    As soon as I open the terminal I type that’s but it shows no output

    After typing this command you need to start the app (in same terminal):

    export QT_DEBUG_PLUGINS=1
    ./my_app_exe
    

    If you want to start from QtCreator then set QT_DEBUG_PLUGINS in Projects/Build & Run/Run/Run Environment".

    J Offline
    J Offline
    Jesus Ocegueda
    wrote on last edited by
    #26

    @jsulm said in QT is not able to connect to MySQL.:

    @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

    As soon as I open the terminal I type that’s but it shows no output

    After typing this command you need to start the app (in same terminal):

    export QT_DEBUG_PLUGINS=1
    ./my_app_exe
    

    If you want to start from QtCreator then set QT_DEBUG_PLUGINS in Projects/Build & Run/Run/Run Environment".

    So instead of ./my_app_exe it will be ./qt?

    jsulmJ 1 Reply Last reply
    0
    • J Jesus Ocegueda

      @jsulm said in QT is not able to connect to MySQL.:

      @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

      As soon as I open the terminal I type that’s but it shows no output

      After typing this command you need to start the app (in same terminal):

      export QT_DEBUG_PLUGINS=1
      ./my_app_exe
      

      If you want to start from QtCreator then set QT_DEBUG_PLUGINS in Projects/Build & Run/Run/Run Environment".

      So instead of ./my_app_exe it will be ./qt?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #27

      @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

      So instead of ./my_app_exe it will be ./qt?

      Instead of my_app_exe you use the name of your executable

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

        So instead of ./my_app_exe it will be ./qt?

        Instead of my_app_exe you use the name of your executable

        J Offline
        J Offline
        Jesus Ocegueda
        wrote on last edited by
        #28

        @jsulm said in QT is not able to connect to MySQL.:

        @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

        So instead of ./my_app_exe it will be ./qt?

        Instead of my_app_exe you use the name of your executable

        You mean my .pro file?

        JonBJ 1 Reply Last reply
        0
        • J Jesus Ocegueda

          @jsulm said in QT is not able to connect to MySQL.:

          @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

          So instead of ./my_app_exe it will be ./qt?

          Instead of my_app_exe you use the name of your executable

          You mean my .pro file?

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #29

          @Jesus-Ocegueda

          You mean my .pro file?

          No, the executable program which you build and run all the time.

          J 1 Reply Last reply
          0
          • JonBJ JonB

            @Jesus-Ocegueda

            You mean my .pro file?

            No, the executable program which you build and run all the time.

            J Offline
            J Offline
            Jesus Ocegueda
            wrote on last edited by
            #30

            @JonB said in QT is not able to connect to MySQL.:

            @Jesus-Ocegueda

            You mean my .pro file?

            No, the executable program which you build and run all the time.
            Alrighty, that will be the mainwindow.cpp

            JonBJ 2 Replies Last reply
            0
            • J Jesus Ocegueda

              @JonB said in QT is not able to connect to MySQL.:

              @Jesus-Ocegueda

              You mean my .pro file?

              No, the executable program which you build and run all the time.
              Alrighty, that will be the mainwindow.cpp

              JonBJ Online
              JonBJ Online
              JonB
              wrote on last edited by
              #31

              @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

              Alrighty, that will be the mainwindow.cpp

              I'm afraid not, that is a source code file! No use at all here....

              Have you ever written source code for a compiled language like C++ before? To be fair, since you reference phpmyadmin, you may not have done. But then there is a big comprehension leap.

              Do you understand what is going on when you type some code into a C++ file in Qt Creator and press one the Build (or Run or Debug) buttons? You don't need to know all the details, but I do think you should read up on what "compilation" is all about, because it will help with other things.

              J 1 Reply Last reply
              1
              • JonBJ JonB

                @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

                Alrighty, that will be the mainwindow.cpp

                I'm afraid not, that is a source code file! No use at all here....

                Have you ever written source code for a compiled language like C++ before? To be fair, since you reference phpmyadmin, you may not have done. But then there is a big comprehension leap.

                Do you understand what is going on when you type some code into a C++ file in Qt Creator and press one the Build (or Run or Debug) buttons? You don't need to know all the details, but I do think you should read up on what "compilation" is all about, because it will help with other things.

                J Offline
                J Offline
                Jesus Ocegueda
                wrote on last edited by
                #32

                @JonB said in QT is not able to connect to MySQL.:

                @Jesus-Ocegueda said in QT is not able to connect to MySQL.:

                Alrighty, that will be the mainwindow.cpp

                I'm afraid not, that is a source code file! No use at all here....

                Have you ever written source code for a compiled language like C++ before? To be fair, since you reference phpmyadmin, you may not have done. But then there is a big comprehension leap.

                Do you understand what is going on when you type some code into a C++ file in Qt Creator and press one the Build (or Run or Debug) buttons? You don't need to know all the details, but I do think you should read up on what "compilation" is all about, because it will help with other things.

                I understand, thank you for the recommendation, @JonB

                1 Reply Last reply
                0
                • J Jesus Ocegueda

                  @JonB said in QT is not able to connect to MySQL.:

                  @Jesus-Ocegueda

                  You mean my .pro file?

                  No, the executable program which you build and run all the time.
                  Alrighty, that will be the mainwindow.cpp

                  JonBJ Online
                  JonBJ Online
                  JonB
                  wrote on last edited by JonB
                  #33

                  @Jesus-Ocegueda
                  Look, forget about directly running the executable for now!

                  From Qt Creator:

                  1. Click Projects down the left-hand "toolbar".
                  2. In the window which comes up, at the left, in the Build & Run section, under Desktop, click on the word Run.
                  3. In the Run Settings filling the main area, find Run Environment.
                  4. It presently says: Use Build Environment.
                  5. Click the Details button to the right of that.
                  6. You are presented with a window with a list of all the environment variables your program will execute with.
                  7. Click the Add button.
                  8. Add an environment variable whose name is QT_DEBUG_PLUGINS, and give it a value of 1.
                  9. Now run your program from within Creator.
                  10. Look in the Application Output window, at the bottom. You should see lots of diagnostic information.

                  This is what people were asking you to do. Whether it will contain useful information for whatever your issue is I do not know.

                  J 1 Reply Last reply
                  1
                  • JonBJ JonB

                    @Jesus-Ocegueda
                    Look, forget about directly running the executable for now!

                    From Qt Creator:

                    1. Click Projects down the left-hand "toolbar".
                    2. In the window which comes up, at the left, in the Build & Run section, under Desktop, click on the word Run.
                    3. In the Run Settings filling the main area, find Run Environment.
                    4. It presently says: Use Build Environment.
                    5. Click the Details button to the right of that.
                    6. You are presented with a window with a list of all the environment variables your program will execute with.
                    7. Click the Add button.
                    8. Add an environment variable whose name is QT_DEBUG_PLUGINS, and give it a value of 1.
                    9. Now run your program from within Creator.
                    10. Look in the Application Output window, at the bottom. You should see lots of diagnostic information.

                    This is what people were asking you to do. Whether it will contain useful information for whatever your issue is I do not know.

                    J Offline
                    J Offline
                    Jesus Ocegueda
                    wrote on last edited by
                    #34

                    @JonB said in QT is not able to connect to MySQL.:

                    QT_DEBUG_PLUGINS

                    OMG!
                    Thank you for your patience, I definitely treasure this. I'm gonna start reading it. However I will share it in case someone can identify something:

                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms" ...
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqeglfs.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqeglfs.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "eglfs"
                    ]
                    },
                    "archreq": 0,
                    "className": "QEglFSIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("eglfs")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqeglfs.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqlinuxfb.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqlinuxfb.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "linuxfb"
                    ]
                    },
                    "archreq": 0,
                    "className": "QLinuxFbIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("linuxfb")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqlinuxfb.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqminimal.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqminimal.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "minimal"
                    ]
                    },
                    "archreq": 0,
                    "className": "QMinimalIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("minimal")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqminimal.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqminimalegl.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqminimalegl.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "minimalegl"
                    ]
                    },
                    "archreq": 0,
                    "className": "QMinimalEglIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("minimalegl")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqminimalegl.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqoffscreen.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqoffscreen.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "offscreen"
                    ]
                    },
                    "archreq": 0,
                    "className": "QOffscreenIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("offscreen")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqoffscreen.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqvnc.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqvnc.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "vnc"
                    ]
                    },
                    "archreq": 0,
                    "className": "QVncIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("vnc")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqvnc.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-egl.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-egl.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "wayland-egl"
                    ]
                    },
                    "archreq": 0,
                    "className": "QWaylandEglPlatformIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("wayland-egl")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-egl.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-generic.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-generic.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "wayland"
                    ]
                    },
                    "archreq": 0,
                    "className": "QWaylandIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("wayland")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-generic.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-xcomposite-egl.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "wayland-xcomposite-egl"
                    ]
                    },
                    "archreq": 0,
                    "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("wayland-xcomposite-egl")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-xcomposite-egl.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-xcomposite-glx.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "wayland-xcomposite-glx"
                    ]
                    },
                    "archreq": 0,
                    "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("wayland-xcomposite-glx")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwayland-xcomposite-glx.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwebgl.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwebgl.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "webgl"
                    ]
                    },
                    "archreq": 0,
                    "className": "QWebGLIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("webgl")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqwebgl.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqxcb.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqxcb.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                    "Keys": [
                    "xcb"
                    ]
                    },
                    "archreq": 0,
                    "className": "QXcbIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("xcb")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqxcb.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Interfaces-2021A/Ejemplo-3-Checador-de-Horarios/build-Ejemplo-3-Checador-de-Horarios-Desktop_Qt_5_12_8_GCC_64bit-Debug/platforms" ...
                    loaded library "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqxcb.so"
                    loaded library "Xcursor"
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes" ...
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes/libqgtk3.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes/libqgtk3.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
                    "MetaData": {
                    "Keys": [
                    "gtk3"
                    ]
                    },
                    "archreq": 0,
                    "className": "QGtk3ThemePlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("gtk3")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes/libqgtk3.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes/libqxdgdesktopportal.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
                    "MetaData": {
                    "Keys": [
                    "xdgdesktopportal",
                    "flatpak",
                    "snap"
                    ]
                    },
                    "archreq": 0,
                    "className": "QXdgDesktopPortalThemePlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("xdgdesktopportal", "flatpak", "snap")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes/libqxdgdesktopportal.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Interfaces-2021A/Ejemplo-3-Checador-de-Horarios/build-Ejemplo-3-Checador-de-Horarios-Desktop_Qt_5_12_8_GCC_64bit-Debug/platformthemes" ...
                    loaded library "/home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes/libqgtk3.so"
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts" ...
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
                    "MetaData": {
                    "Keys": [
                    "compose",
                    "xim"
                    ]
                    },
                    "archreq": 0,
                    "className": "QComposePlatformInputContextPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("compose", "xim")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
                    "MetaData": {
                    "Keys": [
                    "ibus"
                    ]
                    },
                    "archreq": 0,
                    "className": "QIbusPlatformInputContextPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("ibus")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
                    "MetaData": {
                    "Keys": [
                    "qtvirtualkeyboard"
                    ]
                    },
                    "archreq": 0,
                    "className": "QVirtualKeyboardPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("qtvirtualkeyboard")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Interfaces-2021A/Ejemplo-3-Checador-de-Horarios/build-Ejemplo-3-Checador-de-Horarios-Desktop_Qt_5_12_8_GCC_64bit-Debug/platforminputcontexts" ...
                    loaded library "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Qt/5.12.8/gcc_64/plugins/styles" ...
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Interfaces-2021A/Ejemplo-3-Checador-de-Horarios/build-Ejemplo-3-Checador-de-Horarios-Desktop_Qt_5_12_8_GCC_64bit-Debug/styles" ...
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers" ...
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlite.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlite.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                    "MetaData": {
                    "Keys": [
                    "QSQLITE"
                    ]
                    },
                    "archreq": 0,
                    "className": "QSQLiteDriverPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("QSQLITE")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlite.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlmysql.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlmysql.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                    "MetaData": {
                    "Keys": [
                    "QMYSQL3",
                    "QMYSQL"
                    ]
                    },
                    "archreq": 0,
                    "className": "QMYSQLDriverPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("QMYSQL3", "QMYSQL")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlmysql.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlodbc.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlodbc.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                    "MetaData": {
                    "Keys": [
                    "QODBC3",
                    "QODBC"
                    ]
                    },
                    "archreq": 0,
                    "className": "QODBCDriverPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("QODBC3", "QODBC")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlodbc.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlpsql.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlpsql.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                    "MetaData": {
                    "Keys": [
                    "QPSQL7",
                    "QPSQL"
                    ]
                    },
                    "archreq": 0,
                    "className": "QPSQLDriverPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("QPSQL7", "QPSQL")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlpsql.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Interfaces-2021A/Ejemplo-3-Checador-de-Horarios/build-Ejemplo-3-Checador-de-Horarios-Desktop_Qt_5_12_8_GCC_64bit-Debug/sqldrivers" ...
                    loaded library "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlmysql.so"
                    Data base is NOT open "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) QMYSQL: Unable to connect"
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations" ...
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
                    "MetaData": {
                    "Keys": [
                    "xcb_egl"
                    ]
                    },
                    "archreq": 0,
                    "className": "QXcbEglIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("xcb_egl")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
                    Found metadata in lib /home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so, metadata=
                    {
                    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
                    "MetaData": {
                    "Keys": [
                    "xcb_glx"
                    ]
                    },
                    "archreq": 0,
                    "className": "QXcbGlxIntegrationPlugin",
                    "debug": false,
                    "version": 330752
                    }

                    Got keys from plugin meta data ("xcb_glx")
                    QFactoryLoader::QFactoryLoader() looking at "/home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so.debug"
                    "The shared library was not found."
                    not a plugin
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Interfaces-2021A/Ejemplo-3-Checador-de-Horarios/build-Ejemplo-3-Checador-de-Horarios-Desktop_Qt_5_12_8_GCC_64bit-Debug/xcbglintegrations" ...
                    loaded library "/home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Qt/5.12.8/gcc_64/plugins/accessible" ...
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Interfaces-2021A/Ejemplo-3-Checador-de-Horarios/build-Ejemplo-3-Checador-de-Horarios-Desktop_Qt_5_12_8_GCC_64bit-Debug/accessible" ...
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Qt/5.12.8/gcc_64/plugins/accessiblebridge" ...
                    QFactoryLoader::QFactoryLoader() checking directory path "/home/jesus/Interfaces-2021A/Ejemplo-3-Checador-de-Horarios/build-Ejemplo-3-Checador-de-Horarios-Desktop_Qt_5_12_8_GCC_64bit-Debug/accessiblebridge" ...
                    QLibraryPrivate::unload succeeded on "/home/jesus/Qt/5.12.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
                    QLibraryPrivate::unload succeeded on "/home/jesus/Qt/5.12.8/gcc_64/plugins/sqldrivers/libqsqlmysql.so"
                    QLibraryPrivate::unload succeeded on "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
                    QLibraryPrivate::unload succeeded on "/home/jesus/Qt/5.12.8/gcc_64/plugins/platformthemes/libqgtk3.so"
                    QLibraryPrivate::unload succeeded on "/home/jesus/Qt/5.12.8/gcc_64/plugins/platforms/libqxcb.so"
                    QLibraryPrivate::unload succeeded on "Xcursor" (faked)

                    1 Reply Last reply
                    0
                    • Christian EhrlicherC Online
                      Christian EhrlicherC Online
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by Christian Ehrlicher
                      #35

                      Again: this is not a Qt sql plugin problem - as you can see the connection is refused to the attempt to connect through a local socket instead tcp/ip which seems to be forbidden. All explained in my link I gave and I'm pretty sure google can tell much more about this if it's not properly enough explained there.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      J 1 Reply Last reply
                      1
                      • Christian EhrlicherC Christian Ehrlicher

                        Again: this is not a Qt sql plugin problem - as you can see the connection is refused to the attempt to connect through a local socket instead tcp/ip which seems to be forbidden. All explained in my link I gave and I'm pretty sure google can tell much more about this if it's not properly enough explained there.

                        J Offline
                        J Offline
                        Jesus Ocegueda
                        wrote on last edited by
                        #36

                        @Christian-Ehrlicher said in QT is not able to connect to MySQL.:

                        Again: this is not a Qt sql plugin problem - as you can see the connection is refused to the attempt to connect through a local socket instead tcp/ip which seems to be forbidden. All explained in my link I gave and I'm pretty sure google can tell much more about this if it's not properly enough explained there.

                        You right I’ve not read the entire article. Thank you and I will let you know the result.

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved