<?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>Jimmy&#039;s Blog &#187; mysql</title>
	<atom:link href="http://jimmod.com/blog/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimmod.com/blog</link>
	<description>My name is Jimmy, and this is my story... ;)</description>
	<lastBuildDate>Fri, 14 Oct 2011 17:26:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solving failed starting mysql service with non default datadir (Ubuntu)</title>
		<link>http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/</link>
		<comments>http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 11:06:17 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[start]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=86</guid>
		<description><![CDATA[ 
				
			 
				
			 
				Tweet 
			
		I used to put my mysql data dir to /home/mysql, just to separated the partition so when something goes wrong or upgrading the OS I won&#8217;t lose my mysql data just because I forgot to backup it.
After I upgrade from Ubuntu 8.04 to Ubuntu 9.04 suddenly my mysql failed to start.
The [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2010/06/solving-fixing-ubuntu-10-04-lucid-screen-flickerdistortion/' rel='bookmark' title='Permanent Link: Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion'>Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion</a></li><li><a href='http://jimmod.com/blog/2009/06/solving-pidgin-cannot-connect-ym/' rel='bookmark' title='Permanent Link: Solving Pidgin cannot connect to Yahoo Messenger (YM)'>Solving Pidgin cannot connect to Yahoo Messenger (YM)</a></li><li><a href='http://jimmod.com/blog/2007/11/change-junit-run-file-main-class-working-directory-at-netbeans-55-web-project/' rel='bookmark' title='Permanent Link: Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project'>Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project</a></li></ol>]]></description>
			<content:encoded><![CDATA[<div style="height:33px; padding-top:2px; padding-bottom:2px; clear:both;" class="really_simple_share"><div style="float:left; width:100px; " class="really_simple_share_facebook_like"> 
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fjimmod.com%2Fblog%2F2009%2F06%2Fsolving-failed-starting-mysql-service-with-non-default-datadir-ubuntu%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=27" 
					scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:27px;" allowTransparency="true"></iframe>
			</div><div style="float:left; width:90px; padding-left:10px;" class="really_simple_share_google1"> 
				<g:plusone size="medium" href="http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/" ></g:plusone>
			</div><div style="float:left; width:110px; padding-left:10px;" class="really_simple_share_twitter"> 
				<a href="http://twitter.com/share" class="twitter-share-button" data-count="none" 
					data-text="Solving failed starting mysql service with non default datadir (Ubuntu)" data-url="http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/">Tweet</a> 
			</div></div>
		<div style="clear:both;"></div><p>I used to put my mysql data dir to /home/mysql, just to separated the partition so when something goes wrong or upgrading the OS I won&#8217;t lose my mysql data just because I forgot to backup it.</p>
<p>After I upgrade from Ubuntu 8.04 to Ubuntu 9.04 suddenly my mysql failed to start.<br />
The strange thing the only data dir seems working is putting it on /var/lib/mysql which is the default directory for mysql data dir.</p>
<p>After browsing around I found out that it is apparmor that prevent mysql datadir on different directory.</p>
<p>So the easy way to solve this is to remove apparmor : apt-get &#8211;purge remove apparmor</p>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2010/06/solving-fixing-ubuntu-10-04-lucid-screen-flickerdistortion/' rel='bookmark' title='Permanent Link: Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion'>Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion</a></li><li><a href='http://jimmod.com/blog/2009/06/solving-pidgin-cannot-connect-ym/' rel='bookmark' title='Permanent Link: Solving Pidgin cannot connect to Yahoo Messenger (YM)'>Solving Pidgin cannot connect to Yahoo Messenger (YM)</a></li><li><a href='http://jimmod.com/blog/2007/11/change-junit-run-file-main-class-working-directory-at-netbeans-55-web-project/' rel='bookmark' title='Permanent Link: Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project'>Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

