Bug 458704 - Migration Database
Summary: Migration Database
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Database-Migration (other bugs)
Version First Reported In: 7.8.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-04 17:52 UTC by foto19@ernst-buerjes.de
Modified: 2022-09-06 20:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.9.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description foto19@ernst-buerjes.de 2022-09-04 17:52:13 UTC
I want to print fotobooks on my own printer and I want to use metadata (Caption, Notes, Keywords) to print them as titles etc. of the pictures. The tool to do this might be LibreOffice (LibreBase). LibreOffice can import a mySQL database, but no SQLite. 
So I tried to migrate the digiKam SQLite database to a mySQL database with the digiKam migration tool. But digiKam misses the file mysql_install_db and does not work. I installed the Ubuntu-Repository of Maria-db. The files mysqladmin and mysqld are present. But mysql_install_db is missing. What can I do?
Comment 1 Maik Qualmann 2022-09-04 18:04:05 UTC
Are you sure you have MariaDB installed? "mysql_install_db" is still included with MariaDB, but no longer with Oracle MySQL.

You plan to use an internal MySQL server, that's not easy, it has to be running before you can copy the SQLite database. I also think that LibreOffice expects a "proper" MySQL server. The digiKam internal MySQL server is started and stopped by digiKam and only communicates via a socket file. This will not work with LibreOffice. You need to set up an external MySQL server.

Maik
Comment 2 Maik Qualmann 2022-09-06 20:12:41 UTC
If mysql_install_db is not present in the MariaDB package on Ubuntu, open a bug report on Ubuntu. Data exchange with LibreOffice is a bit out of scope for us, I think everything is explained. If you have any questions, you are welcome to ask them. I'm closing the bug now.

Maik