Bug 288112 - try harder if the default SQL driver is missing
Summary: try harder if the default SQL driver is missing
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-03 09:39 UTC by Nick Shaforostoff
Modified: 2013-08-28 14:20 UTC (History)
1 user (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 Nick Shaforostoff 2011-12-03 09:39:06 UTC
Version:           unspecified (using KDE 4.7.3) 
OS:                Linux

please make akonadi search for available drivers and select first working one if the one specified in ~/.config/akonadi/akonadiserverrc is not available.


Reproducible: Always

Steps to Reproduce:
use case:
kubuntu comes with akonadi-backend-mysql backend installed and configured by default, but i consider it to heavy for a netbook.

so i install akonadi-backend-sqlite, then uninstall akonadi-backend-mysql.
then restart pc.

Actual Results:  
result:
akonadi fails to start after system reboot.
this happens because ~/.config/akonadi/akonadiserverrc file only contains QMYSQL driver section and [General] section still points to QMYSQL, 


Expected Results:  
expected:
akonadi starts fine autoselecting first driver available (QSQLITE in this case).
[QSQLITE] section with default values is added to akonadiserverrc file,
and the driver specified in [General] section is automatically changed to QSQLITE.


i reported initially this feature request to debian but they said upstream should work on this instead
Comment 1 Daniel Vrátil 2013-08-28 14:20:21 UTC
The backend can be configured in System Settings -> Akonadi Configuration -> Akonadi Server Configuration.

Akonadi just tries to use whatever is configured. To switch to another backend, you have to change it in the KCM.