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.@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? -
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.
-
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.
@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
-
@JonB already wrote what to do:
@JonB said in QT is not able to connect to MySQL.:type export QT_DEBUG_PLUGINS=1
-
@JonB already wrote what to do:
@JonB said in QT is not able to connect to MySQL.:type export QT_DEBUG_PLUGINS=1
@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 :(
-
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. -
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.@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? -
@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?@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".
-
@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".
@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?
-
@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?
@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
-
@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
@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?
-
@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?
You mean my .pro file?
No, the executable program which you build and run all the time.
-
You mean my .pro file?
No, the executable program which you build and run all the time.
@JonB said in QT is not able to connect to MySQL.:
You mean my .pro file?
No, the executable program which you build and run all the time.
Alrighty, that will be the mainwindow.cpp -
@JonB said in QT is not able to connect to MySQL.:
You mean my .pro file?
No, the executable program which you build and run all the time.
Alrighty, that will be the mainwindow.cpp@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.
-
@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.
@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
-
@JonB said in QT is not able to connect to MySQL.:
You mean my .pro file?
No, the executable program which you build and run all the time.
Alrighty, that will be the mainwindow.cpp@Jesus-Ocegueda
Look, forget about directly running the executable for now!From Qt Creator:
- Click Projects down the left-hand "toolbar".
- In the window which comes up, at the left, in the Build & Run section, under Desktop, click on the word Run.
- In the Run Settings filling the main area, find Run Environment.
- It presently says: Use Build Environment.
- Click the Details button to the right of that.
- You are presented with a window with a list of all the environment variables your program will execute with.
- Click the Add button.
- Add an environment variable whose name is
QT_DEBUG_PLUGINS
, and give it a value of1
. - Now run your program from within Creator.
- 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.
-
@Jesus-Ocegueda
Look, forget about directly running the executable for now!From Qt Creator:
- Click Projects down the left-hand "toolbar".
- In the window which comes up, at the left, in the Build & Run section, under Desktop, click on the word Run.
- In the Run Settings filling the main area, find Run Environment.
- It presently says: Use Build Environment.
- Click the Details button to the right of that.
- You are presented with a window with a list of all the environment variables your program will execute with.
- Click the Add button.
- Add an environment variable whose name is
QT_DEBUG_PLUGINS
, and give it a value of1
. - Now run your program from within Creator.
- 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.
@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) -
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.
-
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.
@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.