Summary: | Akonadi server with internal MySQL does not start for root | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Thorsten Staerk <dev> |
Component: | server | Assignee: | Volker Krause <vkrause> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | wstephenson |
Priority: | NOR | ||
Version: | 4.3 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Thorsten Staerk
2009-09-28 12:32:09 UTC
When trying to manually start mysql: /usr/sbin/mysqld --defaults-file=/root/.local/share/akonadi//mysql.conf --datadir=/root/.local/share/akonadi/db_data/ --socket=/root/.local/share/akonadi/db_misc/mysql.socket I get: 090928 12:39:43 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! 090928 12:39:43 [ERROR] Aborting 090928 12:39:43 [Note] /usr/sbin/mysqld: Shutdown complete Looks like a problem with running Akonadi (or rather MySQL) as root. Does it work with a normal user? Workaround is to use a central mysql daemon: http://techbase.kde.org/Projects/PIM/Akonadi#Can_Akonadi_use_a_normal_MySQL_server_running_on_my_system.3F I just had a user report this as well. Mysql refuses to start with the out of the box config when kdepim apps are run as root. It works fine as a regular user. If it's not worth fixing the config to allow running as root (although this case might be relevant on mobile devices where everything runs as root) then at least the framework should check for root and fail gracefully instead of letting mysql abort. I've added a self-test to clearly warn the user why Akonadi+MySQL won't start as root. I can see that it should be possible to run as root if you really want to, which can be done with a local MySQL by adding "user=root" to mysql-local.conf, but this is so corner I think it's sufficient to warn the user that it's a bad idea. svn rev 1106949 is the commit. |