Build mysql driver on linux (Debian)
-
Hello everybody, I want to build mysql driver on linux. I use Kali linux 2024.
Thanks -
So what's your question? When you use the Qt provided by your distribution you only have to install the pre-packaged version.
If you compile Qt6 by your self or installed it via the online installer visit https://doc.qt.io/qt-6/sql-driver.html -
-
You show the installation instructions for windows...
Please start over with a clean build directory, follow the documentation and post the output in case of an error. -
-
It is same error when I try to compile with QMYSQL
-
So actually your plugin was built (otherwise it would not show up in available drivers) but it is not loaded due to missing dependencies -> Start you app with env var QT_DEBUG_PLUGINS is set ( https://doc.qt.io/qt-6/debug.html#environment-variables-recognized-by-qt ) and see why the Qt mysql plugin is no loaded.
-
When you use Kali Linux why do you compile Qt by yourself instead using the provided packages?
-
I needed qt creator and I also didn't have the information that Qt is available directly.
Can you guide me on this? -
When you need QtCreator why do you compile Qt then? Simply install it via the Qt online installer.
-
Yes I installed via Qt online, now I need to connect my application to MYSQL (XAMPP) for use my database.
-
Thanks it work.
9/12