This assumes you use mysql/external:

  • Save your amarok <2.2 database:
mysqldump -uroot -p amarok > amarok.db #adjust for your system
  • Re-import it as database "amarok1"
  • Drop your original amarok database and let Amarok 2.2 otherwise re-create it.
  • Look at amarok.urls.rpath and amarok1.statistics.url to determine the prepending path difference

Execute the following queries:

update amarok1.statistics set url=REPLACE(url,"./", "./mnt/hdd750/"); /* replace "./mnt/hdd750/" with the prepending difference you saw in the earlier step */

insert into amarok.statistics (url,createdate,accessdate,score,rating,playcount,deleted) select id,createdate,accessdate,percentage,rating,playcounter,deleted from amarok1.statistics s1 inner join amarok.urls u2 on(s1.url=u2.rpath);

Preseto, Amarok 2.2 now has your old statistics.

This blog post was posted to orz on Sunday October 25th, 2009 at 6:30PM
 

Leave a Comment

You can use bbcode in the comment: e.g. [b]This is bold[/b], [url]http://www.willmcgugan.com[/url], [code python]import this[/code]
Preview Posting...
Previewing comment, please wait a moment...
Search for Posts
Possibly related posts
Tags
Popular Tags
 
Archives
2010
 
Recent Comments
 
© 2008 Will McGugan.

A technoblog blog, design by Will McGugan