Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
I'm trying to run digiKam using MySQL DB. But it provides me the following error:
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QSqlDatabase: driver not loaded
Could anyone please help to fix this?
Most probably you have not compiled the MySQL Qt driver. Please see this splendid guide by mattewre: link
Hi and welcome to devnet,
On what OS are you running digiKam ?
@SGaist I use Kubuntu 15.10
@sierdzio I've installed libqt5sql5-mysql is installed on my system.
Anything else I need to install?
Did you build digiKam yourself ?
@SGaist Yes, I built digiKam myself.
With which version of Qt ?
@SGaist Qt 5.6.0
Okay, so what you are likely experimenting is that you have a version of MySQL different than the one used to build the plugin. Currently you likely have the version 18 of the client library and the module was built with 16.
Now you have two options:
- Rebuild the plugin for your 5.6
- Use your distribution Qt 5 to build digiKam
@SGaist Could you elaborate a little on how to accomplish these?
It would be a help.
- See the link I posted in my first reply to you - contains detailed instructions.
- Install dev packages of Qt (in *buntu 15.10 I think they were named qt5-qmake-dev, but might be something else, they keep changing the package names :-/), then compile DigiKam using system Qt (qmake will be in PATH).