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.
QtWS25 Last Chance

QT is not able to connect to MySQL.

Scheduled Pinned Locked Moved Unsolved General and Desktop
36 Posts 6 Posters 5.4k Views
  • 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.
  • J JonB
    30 Mar 2021, 18:10

    @Jesus-Ocegueda
    I'm guessing you run your program from within Qt Creator? In which case you need to set it as a runtime environment variable for when your program is executed.

    If you know how to run your executable from a terminal you need to type export QT_DEBUG_PLUGINS=1 there.

    J Offline
    J Offline
    Jesus Ocegueda
    wrote on 30 Mar 2021, 18:45 last edited by
    #18

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

    @Jesus-Ocegueda
    I'm guessing you run your program from within Qt Creator? In which case you need to set it as a runtime environment variable for when your program is executed.

    If you know how to run your executable from a terminal you need to type export QT_DEBUG_PLUGINS=1 there.

    How do I run it from terminal?
    Should I just open a terminal on the folder my .pro file is?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Mar 2021, 18:52 last edited by
      #19

      Just do the export, it will be valid for the terminal session until you unset it or close the terminal.

      Then go to the folder where your application is and execute it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply 30 Mar 2021, 19:08
      0
      • S SGaist
        30 Mar 2021, 18:52

        Just do the export, it will be valid for the terminal session until you unset it or close the terminal.

        Then go to the folder where your application is and execute it.

        J Offline
        J Offline
        Jesus Ocegueda
        wrote on 30 Mar 2021, 19:08 last edited by
        #20

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

        Just do the export, it will be valid for the terminal session until you unset it or close the terminal.

        Then go to the folder where your application is and execute it.

        I bet this is easy but I don't get how to proceed when you say export, will you mind explain that or how to look it up that on google to search how to do that

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 30 Mar 2021, 19:20 last edited by
          #21

          @JonB already wrote what to do:
          @JonB said in QT is not able to connect to MySQL.:

          type export QT_DEBUG_PLUGINS=1

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply 31 Mar 2021, 06:36
          0
          • S SGaist
            30 Mar 2021, 19:20

            @JonB already wrote what to do:
            @JonB said in QT is not able to connect to MySQL.:

            type export QT_DEBUG_PLUGINS=1

            J Offline
            J Offline
            Jesus Ocegueda
            wrote on 31 Mar 2021, 06:36 last edited by
            #22

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

            @JonB already wrote what to do:
            @JonB said in QT is not able to connect to MySQL.:

            type export QT_DEBUG_PLUGINS=1

            The thing is that I don't know how to run it from the terminal, I do not understand the process, and I know this forum is not for C++, my bad :(

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 31 Mar 2021, 06:51 last edited by
              #23

              This has nothing to do with C++ in this case, it's the Linux export command.

              The instruction is literally: Type export QT_DEBUG_PLUGINS=1 into your terminal. There's nothing more to it.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 1 Reply Last reply 31 Mar 2021, 07:14
              0
              • S SGaist
                31 Mar 2021, 06:51

                This has nothing to do with C++ in this case, it's the Linux export command.

                The instruction is literally: Type export QT_DEBUG_PLUGINS=1 into your terminal. There's nothing more to it.

                J Offline
                J Offline
                Jesus Ocegueda
                wrote on 31 Mar 2021, 07:14 last edited by
                #24

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

                This has nothing to do with C++ in this case, it's the Linux export command.

                The instruction is literally: Type export QT_DEBUG_PLUGINS=1 into your terminal. There's nothing more to it.

                Alrighty!
                As soon as I open the terminal I type that’s but it shows no output. Should I open the terminal on the folder where my project is?

                J 1 Reply Last reply 31 Mar 2021, 07:17
                0
                • J Jesus Ocegueda
                  31 Mar 2021, 07:14

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

                  This has nothing to do with C++ in this case, it's the Linux export command.

                  The instruction is literally: Type export QT_DEBUG_PLUGINS=1 into your terminal. There's nothing more to it.

                  Alrighty!
                  As soon as I open the terminal I type that’s but it shows no output. Should I open the terminal on the folder where my project is?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 31 Mar 2021, 07:17 last edited by
                  #25

                  @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".

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

                  J 1 Reply Last reply 31 Mar 2021, 07:27
                  0
                  • J jsulm
                    31 Mar 2021, 07:17

                    @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 31 Mar 2021, 07:27 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?

                    J 1 Reply Last reply 31 Mar 2021, 07:38
                    0
                    • J Jesus Ocegueda
                      31 Mar 2021, 07:27

                      @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?

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 31 Mar 2021, 07:38 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 31 Mar 2021, 15:10
                      0
                      • J jsulm
                        31 Mar 2021, 07:38

                        @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 31 Mar 2021, 15:10 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?

                        J 1 Reply Last reply 31 Mar 2021, 15:14
                        0
                        • J Jesus Ocegueda
                          31 Mar 2021, 15:10

                          @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?

                          J Offline
                          J Offline
                          JonB
                          wrote on 31 Mar 2021, 15:14 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 31 Mar 2021, 15:37
                          0
                          • J JonB
                            31 Mar 2021, 15:14

                            @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 31 Mar 2021, 15:37 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

                            J 2 Replies Last reply 31 Mar 2021, 16:24
                            0
                            • J Jesus Ocegueda
                              31 Mar 2021, 15:37

                              @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

                              J Offline
                              J Offline
                              JonB
                              wrote on 31 Mar 2021, 16:24 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 31 Mar 2021, 16:30
                              1
                              • J JonB
                                31 Mar 2021, 16:24

                                @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 31 Mar 2021, 16:30 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
                                  31 Mar 2021, 15:37

                                  @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

                                  J Offline
                                  J Offline
                                  JonB
                                  wrote on 31 Mar 2021, 16:34 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 31 Mar 2021, 16:53
                                  1
                                  • J JonB
                                    31 Mar 2021, 16:34

                                    @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 31 Mar 2021, 16:53 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 Offline
                                      Christian EhrlicherC Offline
                                      Christian Ehrlicher
                                      Lifetime Qt Champion
                                      wrote on 31 Mar 2021, 18:41 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 31 Mar 2021, 19:53
                                      1
                                      • Christian EhrlicherC Christian Ehrlicher
                                        31 Mar 2021, 18:41

                                        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 31 Mar 2021, 19:53 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

                                        27/36

                                        31 Mar 2021, 07:38

                                        • Login

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