Bug 351245 - Unable to connect to mysql database, due to missing 'create trigger' while user has ALL privileges on digikam DBs
Summary: Unable to connect to mysql database, due to missing 'create trigger' while us...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Mysql (show other bugs)
Version: 4.12.0
Platform: openSUSE Linux
: NOR grave
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-13 09:22 UTC by Gerard Dirkse
Modified: 2017-07-25 10:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.0


Attachments
Attachment 1, error message (83.37 KB, image/jpeg)
2015-08-13 09:24 UTC, Gerard Dirkse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerard Dirkse 2015-08-13 09:22:42 UTC
When starting digikam, it complains that user has no CREATE TRIGGER privileges and doesnt connect to database (see attachment 1 [details]). Show grants for this user shows it has ALL priviledges on this database:

MariaDB [(none)]> show grants for 'digikam'@'%';
+-----------------------------------------------------------------------------------------------------------------------+
| Grants for digikam@%                                                                                                               |
+-----------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'digikam'@'%' IDENTIFIED BY PASSWORD '*04E1D6'                    |
| GRANT ALL PRIVILEGES ON `digikam`.* TO 'digikam'@'%' WITH GRANT OPTION                |
| GRANT ALL PRIVILEGES ON `digikam_thumbs`.* TO 'digikam'@'%' WITH GRANT OPTION  |
+-----------------------------------------------------------------------------------------------------------------------+
3 rows in set (0.01 sec)


Reproducible: Always

Steps to Reproduce:
1. Start digikam
2.
3.

Actual Results:  
Refer to attachment 1 [details], no contents

Expected Results:  
Show current libraries of fotos
Comment 1 Gerard Dirkse 2015-08-13 09:24:18 UTC
Created attachment 94013 [details]
Attachment 1 [details], error message

Error message when starting up digikam.
Comment 2 Gerard Dirkse 2015-08-17 06:43:59 UTC
Problem fixed, due to binary-logging of database, SUPER privilege was required.  After adding SUPER privilege to user problem was gone.