When migrating the DB from sqlite to mysql does not work (Beim Erstellen der Tabellen in der Datenbank ist ein Fehler aufgetreten.” or ) , edit the edit the /usr/share/kde4/apps/digikam/database/dbconfig.xml configuration file as root and

557c557
<                             UNIQUE(albumRoot, relativePath(255)));</statement>
---
>                             UNIQUE(albumRoot, relativePath(332)));</statement>
567c567
<                             UNIQUE (album, name(255)));</statement>
---
>                             UNIQUE (album, name(332)));</statement>
651c651
<                             UNIQUE (imageid, property(255)));</statement>
---
>                             UNIQUE (imageid, property(332)));</statement>
667c667
<                             UNIQUE(keyword(255)));</statement></dbaction>
---
>                             UNIQUE(keyword(333)));</statement></dbaction>                                                                                   
875c875                                                                                                                                                       
<                             UNIQUE(path(254)))
---
>                             UNIQUE(path(333)))
880c880
<                             UNIQUE(keyword(254)))
---
>                             UNIQUE(keyword(333)))

found this by

export MYSQL D_ DEBUG=yes
/etc / init.d / mysql restart
and 
checking the mysqld-query.log  log 

(which then did not work because the permissions were wrong for the mysql log folder until I fixed them.)

Leave a reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

required

23 − = 17