make akonadi startup actually working - wait for existing socket file
Review Request #124588 - Created Aug. 2, 2015 and submitted
On my system starting "akonadictl start" always led to a failing start.
Always got errors:
/usr/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/akonadi-kdetrunk.26hJXs/mysql.socket' (2) when trying to connect
Failed to verify database server version
Query error: "MySQL server has gone away QMYSQL: Unable to execute query"
My solution is to explicitely wait until mysqld has created the socket file, which works perfectly now.
Probably fixes also bug #238217
I don't know the code at all, but I'm wondering if we can support Windows here as well? there is the Sleep() function you could use on Windows see http://stackoverflow.com/questions/10918206/cross-platform-sleep-function-for-c