Bug 425880

Summary: Unable to connect to a remote MariaDB server on "Driver not loaded" error
Product: [Applications] digikam Reporter: Stephen S. <stephen>
Component: Database-MysqlAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.0.0   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.5.0
Sentry Crash Report:

Description Stephen S. 2020-08-27 19:20:29 UTC
SUMMARY
- I have a MariaDB server (latest, official image) installed on a server within a Docker container container. I know it works as I am able to connect to it through DataGrip
- I have created a digikam database as per the instructions
- I have installed all MySQL dependencies on the work computer: MySQL client, MySQL-QT4 library, MySQL-QT5 library
- And yet, when I test the connection to the digikam database on the server from Digikam, I get a "Driver not loaded" error

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux: Debian 10.5, updated, Gnome
Digikam: 7.00
Comment 1 Maik Qualmann 2020-08-27 19:41:04 UTC
Please activate the debug output in the terminal:

export QT_LOGGING_RULES="digikam.*=true"

Start digiKam in the terminal and post the output in the terminal.
It should be a missing package problem. And Qt4 packages are completely out of place.

Maik
Comment 2 Stephen S. 2020-08-27 20:32:02 UTC
Thanks Maik for the prompt response. What I had not figured out is that I am using a Digikam installed from Flatpak.
Will install the Debian native version whch should yield better results.
Will keep you posted.
Comment 3 Stephen S. 2020-08-27 21:15:44 UTC
OK, everything is fine when installing from the last AppImage.
I could switch to the MariaDB server which was immediately recognized then could migrate the DB from SQLite to MariaDB.
Case closed. Thanks for the help!