<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-11-12 17:11 GMT+01:00 eric <span dir="ltr"><<a href="mailto:e.longuemare@laposte.net" target="_blank">e.longuemare@laposte.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<span class=""><br>
><br>
><br>
>         Why do digikam need super?<br>
<br>
><br>
><br>
> I don't know. I just found this solution in a bugzilla entry and it<br>
> work.<br>
<br>
<br>
><br>
><br>
> Someone like you have posted the same question without a response.<br>
><br>
><br>
> Here my knowledge of mysql is limited.<br>
<br>
</span>I think digikam need super for this :<br>
<br>
"to create or alter a stored function, you must have the SUPER<br>
privilege, in addition to the CREATE ROUTINE or ALTER ROUTINE privilege<br>
that is normally required. (Depending on the DEFINER value in the<br>
function definition, SUPER might be required regardless of whether<br>
binary logging is enabled. See Section 13.1.12, “CREATE PROCEDURE and<br>
CREATE FUNCTION Syntax”.)"<br>
<br>
<br>
<br>
<a href="http://dev.mysql.com/doc/refman/5.7/en/stored-programs-logging.html" rel="noreferrer" target="_blank">http://dev.mysql.com/doc/refman/5.7/en/stored-programs-logging.html</a><br>
<br>
<br>
In the web, I don't know any CMS, which use MYSQl, that doesn't need at<br>
least the knowledge to create a database, its user and right, except<br>
when the hosting service do it for its customer. (and no CMS that need<br>
SUPER privileges)<br>
<br>
So, using MYSQL with Digikam needs at least the same knowledge.<br>
<br>
What is "surprising" and not usual is the super privileges needed, and<br>
all I've read on configuring Digikam with MYSQL is about to get this<br>
working.<br>
<br>
I don't know how this is handle with AMAROK (local or remote MYSQL), but<br>
a look at it should be done.<br></blockquote><div><br></div><div>Ok, now i found why grant privileges are need : we have 2 functions created to handle indexes. </div><div><br></div><div>In digiKam, the database schema descriptions are managed in a single XML configuration file. This permit to adjust it without to recompile the application.</div><div><br></div><div>Look this function here :</div><div><br></div><div><a href="https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/data/database/dbconfig.xml.cmake.in#L1057">https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/data/database/dbconfig.xml.cmake.in#L1057</a><br></div><div><br></div><div>and here :</div><div><br></div><div><a href="https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/data/database/dbconfig.xml.cmake.in#L1390">https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/data/database/dbconfig.xml.cmake.in#L1390</a><br></div><div><br></div><div>As i can see in bugzilla, these 2 method must be re-written differently to prevent to require grant privileges.</div><div><br></div><div>Gilles Caulier</div></div></div></div>