
{"id":28,"date":"2011-09-20T11:32:24","date_gmt":"2011-09-20T11:32:24","guid":{"rendered":"http:\/\/mnm.at\/markus\/?p=28"},"modified":"2014-04-05T00:46:56","modified_gmt":"2014-04-05T00:46:56","slug":"digikam-mysql","status":"publish","type":"post","link":"https:\/\/mnm.at\/markus\/2011\/09\/20\/digikam-mysql\/","title":{"rendered":"Note to self: digikam 1.8 with mysql instead of sqlite"},"content":{"rendered":"<p>When migrating the DB from sqlite to mysql does not work (Beim Erstellen der Tabellen in der Datenbank ist ein Fehler aufgetreten.\u201d or ) , edit the edit the \/usr\/share\/kde4\/apps\/digikam\/database\/dbconfig.xml configuration file as root and<\/p>\n<pre><code>557c557\n&lt;                             UNIQUE(albumRoot, relativePath(255)));&lt;\/statement&gt;\n---\n&gt;                             UNIQUE(albumRoot, relativePath(332)));&lt;\/statement&gt;\n567c567\n&lt;                             UNIQUE (album, name(255)));&lt;\/statement&gt;\n---\n&gt;                             UNIQUE (album, name(332)));&lt;\/statement&gt;\n651c651\n&lt;                             UNIQUE (imageid, property(255)));&lt;\/statement&gt;\n---\n&gt;                             UNIQUE (imageid, property(332)));&lt;\/statement&gt;\n667c667\n&lt;                             UNIQUE(keyword(255)));&lt;\/statement&gt;&lt;\/dbaction&gt;\n---\n&gt;                             UNIQUE(keyword(333)));&lt;\/statement&gt;&lt;\/dbaction&gt;                                                                                   \n875c875                                                                                                                                                       \n&lt;                             UNIQUE(path(254)))\n---\n&gt;                             UNIQUE(path(333)))\n880c880\n&lt;                             UNIQUE(keyword(254)))\n---\n&gt;                             UNIQUE(keyword(333)))\n<\/code><\/pre>\n<p>found this by<\/p>\n<pre><code>export MYSQL D_ DEBUG=yes\n\/etc \/ init.d \/ mysql restart\nand \nchecking the mysqld-query.log  log \n<\/code><\/pre>\n<p>(which then did not work because the permissions were wrong for the mysql log folder until I fixed them.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Work around changes to the Digikam DB schema sql to allow update from sqlite to mysql <a href=\"https:\/\/mnm.at\/markus\/2011\/09\/20\/digikam-mysql\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[3,4],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-tech","tag-digikam","tag-mysql"],"_links":{"self":[{"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":1,"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":29,"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/posts\/28\/revisions\/29"}],"wp:attachment":[{"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mnm.at\/markus\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}