<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-11-12 13:58 GMT+01:00 Henrique Santos Fernandes <span dir="ltr"><<a href="mailto:sf.rique@gmail.com" target="_blank">sf.rique@gmail.com</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"><div dir="ltr">Hello,<div><br></div><div>For the mysql itself there is no diference if it is internal or external. Just use the network conection.</div></div></blockquote><div><br></div><div>no. The database creation is different : </div><div><br></div><div>- Internal : all is done by digiKam as well, thrue digikamdatabaseserver CLI tool. grant all privilegdes cannot processed, because DB is done at run time when digiKam session is open.</div><div><br></div><div>- remote : the database server need to be prepared before, especially privilegdes stuff. It explained in Amarok setup page for ex (a similar explainations need to be done in digiKam)</div><div> </div><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"><div dir="ltr"><div><br></div><div>The permissions are the same for the user just need to grant all privilegdes for the user.</div></div></blockquote><div><br></div><div>yes, but for a internal solution, user do not acces to database, until digiKam try to create it and fail of course due to missing privilegdes</div><div><br></div><div>As, the privilegdes cannot be granted from users space, but must be done by server admin, the internal solution is a non sense. Sqlite do the stuff as well in this situation. As i said previously, trying to run digiKam with an internal mysql server will generate a lots of problems, a lots of reports, and finaly, only if user is an expert, this will not possible to use this way.</div><div><br></div><div>So i will drop internal mysql support for 5.0.0</div><div> </div><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"><div dir="ltr"><div><br></div><div>Digikam could ask for two ways to begin, the first would be to already have the user it needs to connect to the database. The second it could ask for database admin user, in this case, digikam would create its users as it needs. It makes the installating easier for the user, and also more secure for the user digikam, so it will only have the permission it needs.</div></div></blockquote><div><br></div><div>yes. The way to do it il given below :</div><div><br></div><div><span style="color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.4px;white-space:pre-wrap;background-color:rgb(254,254,254)">CREATE DATABASE digikamdb;GRANT ALL PRIVILEGES ON digikamdb.* TO 'digikamuser'@'localhost' IDENTIFIED BY 'digikamuserpassword'; FLUSH PRIVILEGES;
GRANT SUPER ON *.* TO 'digikamuser'@'localhost'; FLUSH PRIVILEGES;</span><br></div><div><br></div><div><span style="color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.4px;white-space:pre-wrap;background-color:rgb(254,254,254)">digikamdb : the digiKam databse name (in case of we use only one mysql database for all tables)</span><br></div><div><span style="color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.4px;white-space:pre-wrap;background-color:rgb(254,254,254)">digikamuser : the name of user account used by digiKAm to access on mysql</span><span style="color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.4px;white-space:pre-wrap;background-color:rgb(254,254,254)"><br></span></div><div><span style="color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.4px;white-space:pre-wrap;background-color:rgb(254,254,254)">digikamuserpassword : the password of the account.</span><span style="color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.4px;white-space:pre-wrap;background-color:rgb(254,254,254)"><br></span></div><div><br></div><div>Here, the mysql DB is hosted on local machine (localhost). Adjusting the name of the machine permit to use a remote server as well.</div><div> </div><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"><div dir="ltr"><div><br></div><div>But i mean, i guess this is the easier part.. the hard part woould be the actual use of mysql for storing stuff right?</div><div>I wish i knew mysql well enouh to help..</div></div></blockquote><div><br></div><div>The here another pending and very important question : </div><div><br></div><div>With digiKam 5.0.0, we will have 3 database to manage :</div><div><br></div><div>1/ Core DB</div><div>2/ Thumbnails DB</div><div>3/ Face DB (since libkface is merged in digiKam core)</div><div><br></div><div>For each digiKam database we can use a specific name. By default i used the name name (digikamdb) here to test, and it work for Core and Thumbnails DB. Face DB don't work and investiguations are under progress...</div><div><br></div><div>So, the question is : why we have the capability to separate Core, Thumbnails, and Face DB with different name (as for ex digikamcoredb, digkamthumbsdb, and digikamfacedb) ? </div><div><br></div><div>In my /var/lib/mysql, i can see separated subfolders to host DB ? What's the advantage ? backup facilities ? Performances ? What's must be the default settings : common name or separated name ?</div><div><br></div><div>All this point are not clear for me (and also for end users as i can see in bugzilla).</div><div> <br></div><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"><div dir="ltr"><div><br></div><div>I prefere mysql cause it would be possible/easier to use digikam on multiple computers with the same database!</div></div></blockquote><div><br></div><div>Sure, this is another important feature, which introduce other dysfunctions as i can see in bugzilla.</div><div><br></div><div>We must investigate step by step, first with simple user cases...</div><div><br></div><div>Gilles Caulier</div></div></div></div>