Bug 437072 - digiKam does not start
Summary: digiKam does not start
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Mysql (other bugs)
Version First Reported In: 7.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-14 05:44 UTC by eberhard.morgenroth
Modified: 2021-05-14 19:48 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eberhard.morgenroth 2021-05-14 05:44:31 UTC
SUMMARY

I wanted to switch to "MySQL Remote Server". I accidentally provided the wrong name of the database. Now I cannot start digikam anymore. When I try to start I get the following error messages:

"Error while opening the database. digiKam will try to automatically reconnect to the database."

If I then press cancel, I get the message "Failed to open the database. You cannot use digiKam without a working database. digiKam will attempt to start now, but it will not be functional. Please check the database settings in the configuration menu." If I press OK then the system simply stalls.

I have uninstalled digiKam and installed as new. But I still get into this dead end.

STEPS TO REPRODUCE
1. Connect wrong MySQL database
Comment 1 caulier.gilles 2021-05-14 06:03:04 UTC
The settings remain on your home directory. Uninstalling digiKam will not remove your settings.

To reset your settings, just remove the file /Users/_your_account_/AppData/Local/digikamrc

Gilles Caulier
Comment 2 Maik Qualmann 2021-05-14 06:29:36 UTC
We have already integrated in digiKam-7.3.0 that the setup page for the database is displayed if there are problems with SQLite and internal MySQL. I'll add this more universally for an external MySQL as well.

Maik
Comment 3 caulier.gilles 2021-05-14 07:38:56 UTC
As we are not too far of the next stable release, it's more and less safe to use digiKam 7.3.0 pre-release installer available here :

https://files.kde.org/digikam/

Gilles Caulier
Comment 4 Maik Qualmann 2021-05-14 19:48:02 UTC
Git commit 3fa6316e1a51acf532ba72c01185a8a799d92da8 by Maik Qualmann.
Committed on 14/05/2021 at 19:47.
Pushed by mqualmann into branch 'master'.

show the database setup page for external MySQL if there is a problem
FIXED-IN: 7.3.0

M  +2    -1    NEWS
M  +1    -0    core/libs/album/manager/albummanager.h
M  +71   -59   core/libs/album/manager/albummanager_database.cpp

https://invent.kde.org/graphics/digikam/commit/3fa6316e1a51acf532ba72c01185a8a799d92da8