<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: upstart failing to manage mysqld on Ubuntu 10.04</title>
	<atom:link href="http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/</link>
	<description></description>
	<lastBuildDate>Wed, 14 Dec 2011 13:19:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Marcus</title>
		<link>http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/comment-page-1/#comment-2406</link>
		<dc:creator>Marcus</dc:creator>
		<pubDate>Tue, 22 Nov 2011 19:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.myrant.net/?p=61#comment-2406</guid>
		<description>Woohoo - thanks @ OP and Ryan!</description>
		<content:encoded><![CDATA[<p>Woohoo &#8211; thanks @ OP and Ryan!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fak3r</title>
		<link>http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/comment-page-1/#comment-2136</link>
		<dc:creator>fak3r</dc:creator>
		<pubDate>Wed, 07 Sep 2011 21:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.myrant.net/?p=61#comment-2136</guid>
		<description>This worked for us after a day of staring at this and reading all the bug reports in Ubuntu forums trying to figure it out - thanks!</description>
		<content:encoded><![CDATA[<p>This worked for us after a day of staring at this and reading all the bug reports in Ubuntu forums trying to figure it out &#8211; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon G</title>
		<link>http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/comment-page-1/#comment-1436</link>
		<dc:creator>Simon G</dc:creator>
		<pubDate>Tue, 14 Jun 2011 14:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.myrant.net/?p=61#comment-1436</guid>
		<description>Legend. Thank You!</description>
		<content:encoded><![CDATA[<p>Legend. Thank You!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio</title>
		<link>http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/comment-page-1/#comment-102</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Wed, 30 Jun 2010 23:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.myrant.net/?p=61#comment-102</guid>
		<description>Thank you both, the author of the post and Ryan for sharing his solution I confirm it worked for me too.</description>
		<content:encoded><![CDATA[<p>Thank you both, the author of the post and Ryan for sharing his solution I confirm it worked for me too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain</title>
		<link>http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/comment-page-1/#comment-93</link>
		<dc:creator>Iain</dc:creator>
		<pubDate>Tue, 22 Jun 2010 14:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.myrant.net/?p=61#comment-93</guid>
		<description>Thanks Ryan.</description>
		<content:encoded><![CDATA[<p>Thanks Ryan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/comment-page-1/#comment-91</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sun, 20 Jun 2010 21:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.myrant.net/?p=61#comment-91</guid>
		<description>Run this:

sed -i -e &#039;s/^exec \/usr\/sbin\/mysqld/exec sudo -u mysql \/usr\/sbin\/mysqld/&#039; /etc/init/mysql.conf

and reboot. Mysql will be 100% manageable via upstart scripts.

The issue was that the init scripts tried to run mysqld as user root, instead of user mysql. That sed one-liner there fixes the issue permanently.

You could use nano or vi on /etc/init/mysql.con as well. Just change line 26 to read:

exec sudo -u mysql /usr/sbin/mysqld

instead of 

exec /usr/sbin/mysqld</description>
		<content:encoded><![CDATA[<p>Run this:</p>
<p>sed -i -e &#8216;s/^exec \/usr\/sbin\/mysqld/exec sudo -u mysql \/usr\/sbin\/mysqld/&#8217; /etc/init/mysql.conf</p>
<p>and reboot. Mysql will be 100% manageable via upstart scripts.</p>
<p>The issue was that the init scripts tried to run mysqld as user root, instead of user mysql. That sed one-liner there fixes the issue permanently.</p>
<p>You could use nano or vi on /etc/init/mysql.con as well. Just change line 26 to read:</p>
<p>exec sudo -u mysql /usr/sbin/mysqld</p>
<p>instead of </p>
<p>exec /usr/sbin/mysqld</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blago</title>
		<link>http://www.myrant.net/2010/05/21/upstart-failing-to-manage-mysqld-on-ubuntu-10-04/comment-page-1/#comment-88</link>
		<dc:creator>Blago</dc:creator>
		<pubDate>Mon, 14 Jun 2010 07:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.myrant.net/?p=61#comment-88</guid>
		<description>God bless you. I would&#039;ve waisted another 2 hours...</description>
		<content:encoded><![CDATA[<p>God bless you. I would&#8217;ve waisted another 2 hours&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

