Summary: | Duplicate column name 'version' QMYSQL | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Matthijs Tijink <matthijstijink> |
Component: | server | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arojas, asturm, emilianh, faure, Mathias.Homann, wbauer1, wraeth+kdebugs |
Priority: | NOR | ||
Version: | 5.11.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=409234 | ||
Latest Commit: | https://cgit.kde.org/akonadi.git/commit/?id=8b8db29d10b2ef92deb2d87ff613f3d7f39af34e | Version Fixed In: | 5.12.0 |
Sentry Crash Report: |
Description
Matthijs Tijink
2019-07-12 19:01:41 UTC
According to downstream reports, this is a regression from 74aed9542ba1ff1e6e93a550c42869647c4eba8e (In reply to Antonio Rojas from comment #1) > According to downstream reports, this is a regression from > 74aed9542ba1ff1e6e93a550c42869647c4eba8e I encountered the same issue with the same version of akonadi on Gentoo, and reverting that specific commit resolved it for me. *** Bug 409853 has been marked as a duplicate of this bug. *** This happens on external MySQL servers, since they don't usually have the option lower_case_table_names=1 enabled, so the (new) toLower() call assumes that option to be present. So the immediate fix is to lowercase your table names. I'm not sure doing that at the filesystem level is enough, they're probably listed in the global mysql DB too. Instead you can use mysqldump, lowercase the table names, and reimport. The external MySQL server feature assumes that your MySQL matches the requirements for Akonadi. This includes InnoDB and lowercase table names, at least. See /etc/xdg/akonadi/mysql-global.conf for the settings used by akonadi. Removing the Akonadi database and using the built-in database indeed worked. Maybe it would be good to document this requirement: I wasn't aware of it (and back when I set it up, this wasn't stated even in the GUI used to configure the external db!), and not entirely expected. https://techbase.kde.org/KDE_PIM/Akonadi#Can_Akonadi_use_a_normal_MySQL_server_running_on_my_system.3F would be a good place. (In reply to David Faure from comment #4) > So the immediate fix is to lowercase your table names. To confirm, this has worked for me, though rather than dumping I just ran 'ALTER TABLE Foo RENAME TO foo;' for each of them, then restarted with lower_case_table_names=1 set. |