Bug 330168 - MYSQL : allow read only database
Summary: MYSQL : allow read only database
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Multiusers (show other bugs)
Version: 3.5.0
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-19 18:44 UTC by Kusi
Modified: 2019-09-16 20:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kusi 2014-01-19 18:44:21 UTC
Please allow accessing the digikam schema (mysql) with a user who only has "select" privileges.

Whenever you start digikam, it errors with the following message: 

"You have insufficient privileges on the database. Following privileges are not assigned to you: ALTER TABLE Check your privileges on the database and restart digiKam."

The same error message appears with "CREATE TABLE"

The previously entered collection is gone. Once re-entered in the settings, everything works fine. You see all the tags, but cannot modify the tags. You restart digikam and the error message pops up and the collection is gone, again





Reproducible: Always

Steps to Reproduce:
1. create a mysql user with SELECT privileges only
2. use digikam in mysql-mode with previously generated read only user
3. 
Actual Results:  
collection in settings disappeared

Expected Results:  
1) When starting with a read-only mysql-user, maybe a warning or indication that digikam db is in read only mode.
2) don't kill my collection from settings every time I launch digikam
Comment 1 Maik Qualmann 2019-09-16 20:49:58 UTC
Git commit 314dda12f798baf64a139ddcf875a8e843fdbbe6 by Maik Qualmann.
Committed on 16/09/2019 at 20:48.
Pushed by mqualmann into branch 'master'.

cleanup the table for the rights check at startup
FIXED-IN: 6.4.0

M  +2    -1    NEWS
M  +11   -7    core/libs/database/coredb/coredbchecker.cpp

https://invent.kde.org/kde/digikam/commit/314dda12f798baf64a139ddcf875a8e843fdbbe6