Bug 244131 - akonadiserver: Unknown MySQL server host 'lokalhost'
Summary: akonadiserver: Unknown MySQL server host 'lokalhost'
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 1.3.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-10 15:29 UTC by hemathor
Modified: 2010-08-03 10:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hemathor 2010-07-10 15:29:54 UTC
Version:           1.3.0 (using KDE 4.4.4) 
OS:                Linux

amongst other annoying things in akonadi, when updating to kde 4.4.4, akonadiserver fills up .xsession-errors with the following messages:

[akonadiserver] Database error: "Unknown MySQL server host 'lokalhost' (0) QMYSQL: Unable to connect"
[akonadiserver] Last database error: "Unknown MySQL server host 'lokalhost' (0)"

i didn't find where akonadi looks for the mysql host, so i had to add 'lokalhost' to my /etc/hosts file...


Reproducible: Always
Comment 1 Volker Krause 2010-07-13 09:56:56 UTC
Could you please attach your ~/.config/akonadi/akonadiserverrc config file (careful, could contain a password)?
Comment 2 hemathor 2010-07-13 10:39:30 UTC
there you go:

--- BEGIN OF FILE: ~/.config/akonadi/akonadiserverrc ---
[QMYSQL]
StartServer=false
ServerPath=
Name=akonadi
Host=localhost
User=akonadi
Password=
Options=

[%General]
Driver=QMYSQL
SizeThreshold=4096
ExternalPayload=false

[Debug]
Tracer=null

[QPSQL]
Name=akonadi
Host=
User=
Password=
Port=5432
--- END OF FILE: ~/.config/akonadi/akonadiserverrc ---

looking at http://userbase.kde.org/Akonadi_4.4/Troubleshooting, i executed 

  kcmshell4 kcm_akonadi

and filled in the appropriate information... but i still haven't removed 'lokalhost' from /etc/hosts yet... should try that sometime...
Comment 3 Tobias Koenig 2010-08-02 21:16:33 UTC
Hej,

I'm quite sure that 'lokalhost' is the culprit in your setup. Can you just grep all files on your hard disc that contains 'lokalhost'? I guess it's a typo somewhere which should be 'localhost' instead.

Ciao,
Tobias
Comment 4 hemathor 2010-08-03 10:22:53 UTC
believe it or not, but a 'find / -exec grep lokalhost "{}" \; -print' was the first thing i did, without any result...

another run right now didn't bring any results either...

meanwhile i removed 'lokalhost' from /etc/hosts, and it seems to be ok. probably the 'kcmshell4 kcm_akonadi' setup did the trick...

on other machines, where no local mysql-daemon is already set up and running, this particular problem didn't occur...