<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Floating Sun &#187; amarok</title>
	<atom:link href="http://floatingsun.net/tag/amarok/feed/" rel="self" type="application/rss+xml" />
	<link>http://floatingsun.net</link>
	<description></description>
	<lastBuildDate>Wed, 25 Jan 2012 07:47:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Amarok ate your stats?</title>
		<link>http://floatingsun.net/2009/01/18/amarok-ate-your-stats/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amarok-ate-your-stats</link>
		<comments>http://floatingsun.net/2009/01/18/amarok-ate-your-stats/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 19:51:00 +0000</pubDate>
		<dc:creator>Diwaker Gupta</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[amarok]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://floatingsun.net/?p=1003</guid>
		<description><![CDATA[I have a reasonably large music collection. In a desire to trim this collection down to stuff that I really like, over the years I have painstakingly rated my songs in Amarok. But twice, now, I have had Amarok eat &#8230; <a href="http://floatingsun.net/2009/01/18/amarok-ate-your-stats/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://floatingsun.net/2004/11/29/amarok-rocks/' rel='bookmark' title='amarok rocks!'>amarok rocks!</a></li>
<li><a href='http://floatingsun.net/2004/11/09/website-stats/' rel='bookmark' title='Website stats'>Website stats</a></li>
<li><a href='http://floatingsun.net/2006/02/12/interesting-but-disappointing-stats/' rel='bookmark' title='Interesting (but disappointing) stats'>Interesting (but disappointing) stats</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have a reasonably large music collection. In a desire to trim this collection down to stuff that I <em>really </em>like, over the years I have painstakingly rated my songs in Amarok. But twice, now, I have had Amarok eat up all my ratings and scores and play counts and other stats. This post will show you how to recover from such a loss.</p>
<p><img title="Amarok" src="http://amarok.kde.org/sites/default/themes/amarok/logo.png" alt="Amarok" width="262" height="72" /></p>
<p>The first solution is for a situation where an Amarok upgrade caused the stats to be lost. I was using the default Amarok setup &#8212; that is, all the stats are stored in a file on disk using sqlite. During my Amarok upgrade, Amarok decided to create a new database. Fortunately, it left the old sqlite database file lying around. If you have an old version of your database, you can restore the stats using the following script:</p>
<p><script src="http://gist.github.com/48719.js"></script> </p>
<p>The next scenario arose when I switched to using Amrok2 recently. Now, granted that Amarok2 is still under heavy development and hence the requisite migration paths might not be in place. But I still hate to lose all my stats. Amarok2 uses embedded MySQL instead of sqlite to store all its data. The following script uses your old database to restore all the stats in the new database.  </p>
<p><script src="http://gist.github.com/48720.js"></script></p>
<p>Note that for this to work, you need to first start a MySQL server using the embedded MySQL directory as the data backend, as pointed out <a href="http://amarok.kde.org/wiki/Development/MySQL_Embedded#Tips">here</a>.</p>
<p>Hope that helps!</p>
<p>Related posts:<ol>
<li><a href='http://floatingsun.net/2004/11/29/amarok-rocks/' rel='bookmark' title='amarok rocks!'>amarok rocks!</a></li>
<li><a href='http://floatingsun.net/2004/11/09/website-stats/' rel='bookmark' title='Website stats'>Website stats</a></li>
<li><a href='http://floatingsun.net/2006/02/12/interesting-but-disappointing-stats/' rel='bookmark' title='Interesting (but disappointing) stats'>Interesting (but disappointing) stats</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://floatingsun.net/2009/01/18/amarok-ate-your-stats/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

