This forum has been archived. All content is frozen. Please use KDE Discuss instead.

akonadi change database

Tags: None
(comma "," separated)
mcirsta
Registered Member
Posts
12
Karma
0

akonadi change database

Sun May 08, 2011 11:59 am
For some reason I need to do a distribution wide Akonadi database backend switch. Currently it uses my mysql for the database and I want it to use sqlite.
This needs to happen automatically for every user that installs the new package ( a script will run ).
I've made the script change akonadiserverrc for every user but there's still one more problem. How do I migrate the data from the mysql database to the sqlite database ?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: akonadi change database

Mon May 09, 2011 10:24 am
You will need to consult the 3rd party MySQL and SQLite documentation for this. I guess dumping the data from the MySQL databases then importing it into a SQLite database should do the trick.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mcirsta
Registered Member
Posts
12
Karma
0

Re: akonadi change database

Mon May 09, 2011 10:56 am
Well I've found some things for doing this but I thought there was something implemented in Akonadi. There's all kinds of scripts and stuff but I'm not sure if they will work.
Will have to test I guess.
Any ideas on how to populate the Akondi database ? Adding some contacts in KAddressBook ?

bcooksley wrote:You will need to consult the 3rd party MySQL and SQLite documentation for this. I guess dumping the data from the MySQL databases then importing it into a SQLite database should do the trick.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: akonadi change database

Mon May 09, 2011 10:58 am
Adding contacts should be done by adding entries to the appropriate resources Akonadi interfaces with. It should have a contacts resource, which will store data somewhere on the system, probably under ~/.local/


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mcirsta
Registered Member
Posts
12
Karma
0

Re: akonadi change database

Mon May 09, 2011 11:00 am
bcooksley wrote:Adding contacts should be done by adding entries to the appropriate resources Akonadi interfaces with. It should have a contacts resource, which will store data somewhere on the system, probably under ~/.local/


OK, I'll give it a try.

Thank you.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]