<?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>Schadenfreude &#187; debian</title>
	<atom:link href="http://www.ralree.com/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:49:15 +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>Moving MySQL Databases</title>
		<link>http://www.ralree.com/2007/03/12/moving-mysql-databases/</link>
		<comments>http://www.ralree.com/2007/03/12/moving-mysql-databases/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 09:56:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/moving-mysql-databases</guid>
		<description><![CDATA[When you move MySQL databases as described here, make sure you don&#8217;t move the ib_ files, but also make sure to move the ib files, like ibdata1. Also, move the mysql subdirectory into the new location. Just did this &#8211; worked great. Now I have RAID5&#8217;d databases. I was doing this to convert an SQLite version of my Amarok database to a MySQL implementation. cd ~/.kde/share/apps/amarok &#038;&#038; sqlite3 collection.db .dump &#124; grep -v "COMMIT;" &#124; grep -v "BEGIN TRANSACTION;" &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>When you move MySQL databases as described <a href="http://rajshekhar.net/blog/archives/90-Moving-the-MySQLs-datadir-directory.html">here</a>, make sure you don&#8217;t move the <b>ib_</b> files, but also make sure to move the <b>ib</b> files, like <b>ibdata1</b>.  Also, move the <strong>mysql</strong> subdirectory into the new location.  Just did this &#8211; worked great.  Now I have RAID5&#8217;d databases.</p>
<p>I was doing this to convert an SQLite version of my Amarok database to a MySQL implementation.  </p>
<pre><code>
cd ~/.kde/share/apps/amarok &#038;&#038; sqlite3 collection.db .dump | grep -v "COMMIT;" | grep -v "BEGIN TRANSACTION;" | perl -pe 's/INSERT INTO \"(.*)\" VALUES/INSERT INTO \1 VALUES/' &gt; amarok
</code></pre>
<p>I also had to do this because of a <strong><em>maximum key length</strong></em> problem, which I found the solution to <a href="http://lists.kde.org/?l=amarok&amp;m=116334179326192&amp;w=2">here</a>:</p>
<pre><code>
vim amarok
:%s/VARCHAR(1024)/VARBINARY(255)/g
</code></pre>
<p>And I finished it off with this:</p>
<pre><code>
mysql -p -u root amarok &lt; amarok
</code></pre>
<p>Now, I&#8217;ll never lose the database even if I reinstall Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/03/12/moving-mysql-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

