<?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; hardy heron</title>
	<atom:link href="http://www.ralree.com/tag/hardy-heron/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>MySQL issues in Hardy Heron</title>
		<link>http://www.ralree.com/2008/04/12/mysql-issues-in-hardy-heron/</link>
		<comments>http://www.ralree.com/2008/04/12/mysql-issues-in-hardy-heron/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 04:44:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hardy heron]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/04/12/mysql-issues-in-hardy-heron</guid>
		<description><![CDATA[I couldn&#8217;t get MySQL to start in Ubuntu 8.04 Hardy Heron after I changed my datadir to /nexus/tardis/mysql &#8211; it turns out I needed to change the AppArmor configuration like so: /etc/apparmor.d/usr.sbin.mysqld /var/lib/mysql/ r, /var/lib/mysql/** rwk, /nexus/tardis/mysql/** rwk, /nexus/tardis/mysql/ r, This was in response to the following syslog messages: /var/log/syslog Apr 12 00:30:59 tardis mysqld[17818]: 080412 0:30:59 [ERROR] /usr/sbin/mysqld: Can't find file: './mysql/host.frm' (errno: 13) Apr 12 00:30:59 tardis mysqld[17818]: 080412 0:30:59 [ERROR] Fatal error: Can't open and lock privilege [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t get MySQL to start in Ubuntu 8.04 Hardy Heron after I changed my datadir to <code>/nexus/tardis/mysql</code> &#8211; it turns out I needed to change the AppArmor configuration like so:</p>
<h3>/etc/apparmor.d/usr.sbin.mysqld</h3>
<pre><code>
  /var/lib/mysql/ r,
  /var/lib/mysql/** rwk,
  /nexus/tardis/mysql/** rwk,
  /nexus/tardis/mysql/ r,
</code></pre>
<p>This was in response to the following syslog messages:</p>
<h3>/var/log/syslog</h3>
<pre><code>
Apr 12 00:30:59 tardis mysqld[17818]: 080412  0:30:59 [ERROR] /usr/sbin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
Apr 12 00:30:59 tardis mysqld[17818]: 080412  0:30:59 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
Apr 12 00:30:59 tardis kernel: [25185.601980] audit(1207974659.063:36): operation="inode_permission" request_mask="r::" denied_mask="r::" name="/nexus/tardis/mysql/mysql/host.frm" pid=17817 profile="/usr/sbin/mysqld" namespace="default"
Apr 12 00:30:59 tardis kernel: [25185.602018] audit(1207974659.063:37): operation="inode_permission" request_mask="r::" denied_mask="r::" name="/nexus/tardis/mysql/mysql/host.frm" pid=17817 profile="/usr/sbin/mysqld" namespace="default"
Apr 12 00:30:59 tardis mysqld_safe[17823]: ended
</code></pre>
<p>Apparently I didn&#8217;t see this important message in <code>my.cnf</code> when I was modifying it:</p>
<pre><code>
# * IMPORTANT
#   If you make changes to these settings and your system uses apparmor, you may
#   also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
</code></pre>
<p>Then, I went and checked <code>/etc/mysql/debian.cnf</code> for the debian-sys-maint password and set it like so:</p>
<pre><code>
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '&lt;that password&gt;' WITH GRANT OPTION;
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/04/12/mysql-issues-in-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

