<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: MySQL:  &#8220;Access denied for user &#8216;debian-sys-maint&#8217;@&#039;localhost&#8217;&#8221;</title>
	<atom:link href="http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/</link>
	<description>Sohail Mirza, standing in for Peter.</description>
	<lastBuildDate>Sun, 21 Apr 2013 09:43:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Debian &#8211; Can&#8217;t Stop MySQL; Permissions? &#124; Click &#38; Find Answer !</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-828</link>
		<dc:creator><![CDATA[Debian &#8211; Can&#8217;t Stop MySQL; Permissions? &#124; Click &#38; Find Answer !]]></dc:creator>
		<pubDate>Sun, 21 Apr 2013 09:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-828</guid>
		<description><![CDATA[[...] the fix and this is the reasoning behind it, if you&#8217;re [...]]]></description>
		<content:encoded><![CDATA[<p>[...] the fix and this is the reasoning behind it, if you&#8217;re [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: walid karray</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-826</link>
		<dc:creator><![CDATA[walid karray]]></dc:creator>
		<pubDate>Tue, 26 Feb 2013 08:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-826</guid>
		<description><![CDATA[Thank a lot :-)]]></description>
		<content:encoded><![CDATA[<p>Thank a lot <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-823</link>
		<dc:creator><![CDATA[Andy]]></dc:creator>
		<pubDate>Tue, 15 Jan 2013 10:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-823</guid>
		<description><![CDATA[Nice one, thanks. Andy (UK)]]></description>
		<content:encoded><![CDATA[<p>Nice one, thanks. Andy (UK)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fail to stop mysql (Unable to lock ./ibdata1, error: 11) video</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-820</link>
		<dc:creator><![CDATA[Fail to stop mysql (Unable to lock ./ibdata1, error: 11) video]]></dc:creator>
		<pubDate>Wed, 09 Jan 2013 02:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-820</guid>
		<description><![CDATA[[...] found a solution to this problem on this page, but I have to log in as a root user to do so, that I can&#8217;t do. I guess the two problems are [...]]]></description>
		<content:encoded><![CDATA[<p>[...] found a solution to this problem on this page, but I have to log in as a root user to do so, that I can&#8217;t do. I guess the two problems are [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hontvari</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-809</link>
		<dc:creator><![CDATA[hontvari]]></dc:creator>
		<pubDate>Tue, 27 Mar 2012 13:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-809</guid>
		<description><![CDATA[It seems the debian-sys-maint user does need more privileges then shutdown and select, otherwise it cannot upgrade the built-in mysql table when needed. The Ubuntu package adds every privilege, even GRANT:
show grants for &#039;debian-sys-maint&#039;@&#039;localhost&#039;;
Result:
GRANT ALL PRIVILEGES ON *.* TO &#039;debian-sys-maint&#039;@&#039;localhost&#039; IDENTIFIED BY PASSWORD &#039;xxx&#039; WITH GRANT OPTION]]></description>
		<content:encoded><![CDATA[<p>It seems the debian-sys-maint user does need more privileges then shutdown and select, otherwise it cannot upgrade the built-in mysql table when needed. The Ubuntu package adds every privilege, even GRANT:<br />
show grants for &#8216;debian-sys-maint&#8217;@'localhost&#8217;;<br />
Result:<br />
GRANT ALL PRIVILEGES ON *.* TO &#8216;debian-sys-maint&#8217;@'localhost&#8217; IDENTIFIED BY PASSWORD &#8216;xxx&#8217; WITH GRANT OPTION</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mas.aby</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-807</link>
		<dc:creator><![CDATA[mas.aby]]></dc:creator>
		<pubDate>Wed, 01 Feb 2012 02:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-807</guid>
		<description><![CDATA[thanks, it&#039;s very usefull]]></description>
		<content:encoded><![CDATA[<p>thanks, it&#8217;s very usefull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linux cheats &#124; dp</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-806</link>
		<dc:creator><![CDATA[linux cheats &#124; dp]]></dc:creator>
		<pubDate>Sun, 15 Jan 2012 18:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-806</guid>
		<description><![CDATA[[...] mirzmaster.wordpress.com [...]]]></description>
		<content:encoded><![CDATA[<p>[...] mirzmaster.wordpress.com [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-805</link>
		<dc:creator><![CDATA[Eric]]></dc:creator>
		<pubDate>Fri, 18 Nov 2011 21:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-805</guid>
		<description><![CDATA[Here&#039;s the bash script I ended up with.
It revokes extraneous privs for debian-sys-maint user, grants only SHUTDOWN and SELECT for mysql.*, then updates the /etc/mysql/debian.cnf script with the same password so that start/stop/restart work correctly from /etc/init.d/mysql.


DEBMAINTPASSWORD=&#039;YOUR_PASSWORD_GOES_HERE&#039;

# tighten restrictions on debian-sys-maint user. Deny all privs.
mysql -e &quot;REVOKE ALL PRIVILEGES ON *.* FROM &#039;debian-sys-maint&#039;@&#039;localhost&#039;;&quot;
# grant only SHUTDOWN (and SELECT on mysql.user because it does a SELECT sanity check on startup) and fix password by copying from /etc/mysql/debian.cnf
mysql -e &quot;GRANT SHUTDOWN ON *.* TO &#039;debian-sys-maint&#039;@&#039;localhost&#039; identified by &#039;$DEBMAINTPASSWORD&#039;;&quot;
mysql -e &quot;GRANT SELECT ON mysql.* TO &#039;debian-sys-maint&#039;@&#039;localhost&#039;;&quot;

# update debian mysql conf file (which stores the maintenance password used by the debian start/stop maintenance scripts) with new password
tmpfile=/etc/mysql/debian.cnf.new
cat /etc/mysql/debian.cnf &#124;sed &quot;s/\(password\ \=\ \)\(.*\)/\1$DEBMAINTPASSWORD/g&quot;&gt;$tmpfile
if [ -s $tmpfile ];then
	cat $tmpfile&gt;/etc/mysql/debian.cnf
	rm -f /$tmpfile
fi]]></description>
		<content:encoded><![CDATA[<p>Here&#8217;s the bash script I ended up with.<br />
It revokes extraneous privs for debian-sys-maint user, grants only SHUTDOWN and SELECT for mysql.*, then updates the /etc/mysql/debian.cnf script with the same password so that start/stop/restart work correctly from /etc/init.d/mysql.</p>
<p>DEBMAINTPASSWORD=&#8217;YOUR_PASSWORD_GOES_HERE&#8217;</p>
<p># tighten restrictions on debian-sys-maint user. Deny all privs.<br />
mysql -e &#8220;REVOKE ALL PRIVILEGES ON *.* FROM &#8216;debian-sys-maint&#8217;@'localhost&#8217;;&#8221;<br />
# grant only SHUTDOWN (and SELECT on mysql.user because it does a SELECT sanity check on startup) and fix password by copying from /etc/mysql/debian.cnf<br />
mysql -e &#8220;GRANT SHUTDOWN ON *.* TO &#8216;debian-sys-maint&#8217;@'localhost&#8217; identified by &#8216;$DEBMAINTPASSWORD&#8217;;&#8221;<br />
mysql -e &#8220;GRANT SELECT ON mysql.* TO &#8216;debian-sys-maint&#8217;@'localhost&#8217;;&#8221;</p>
<p># update debian mysql conf file (which stores the maintenance password used by the debian start/stop maintenance scripts) with new password<br />
tmpfile=/etc/mysql/debian.cnf.new<br />
cat /etc/mysql/debian.cnf |sed &#8220;s/\(password\ \=\ \)\(.*\)/\1$DEBMAINTPASSWORD/g&#8221;&gt;$tmpfile<br />
if [ -s $tmpfile ];then<br />
	cat $tmpfile&gt;/etc/mysql/debian.cnf<br />
	rm -f /$tmpfile<br />
fi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edan</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-803</link>
		<dc:creator><![CDATA[Edan]]></dc:creator>
		<pubDate>Mon, 31 Oct 2011 07:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-803</guid>
		<description><![CDATA[Just finished reinstalling my system and copied my old mysql files from the old disk when i encountered this problem.

Thanks for the great simple solution for the problem]]></description>
		<content:encoded><![CDATA[<p>Just finished reinstalling my system and copied my old mysql files from the old disk when i encountered this problem.</p>
<p>Thanks for the great simple solution for the problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ether</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-802</link>
		<dc:creator><![CDATA[Ether]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 15:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-802</guid>
		<description><![CDATA[Remember, that if you running MySQL as slave, and you replicate mysql DB, you should use debian-sys-maint user&#039;s password from master server. Spend half a day to understand that :)]]></description>
		<content:encoded><![CDATA[<p>Remember, that if you running MySQL as slave, and you replicate mysql DB, you should use debian-sys-maint user&#8217;s password from master server. Spend half a day to understand that <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tabunon</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-762</link>
		<dc:creator><![CDATA[tabunon]]></dc:creator>
		<pubDate>Wed, 06 Oct 2010 14:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-762</guid>
		<description><![CDATA[I ran to a similar problem and the solution simply works perfect.

Cheers!]]></description>
		<content:encoded><![CDATA[<p>I ran to a similar problem and the solution simply works perfect.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abraham</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-760</link>
		<dc:creator><![CDATA[abraham]]></dc:creator>
		<pubDate>Mon, 23 Aug 2010 21:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-760</guid>
		<description><![CDATA[excelent]]></description>
		<content:encoded><![CDATA[<p>excelent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RedScourge</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-744</link>
		<dc:creator><![CDATA[RedScourge]]></dc:creator>
		<pubDate>Mon, 22 Mar 2010 16:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-744</guid>
		<description><![CDATA[You do NOT need to grant all permissions, this is a bad habit to get into from a security standpoint.

All you need to grant is this (as root or whoever):

GRANT SHUTDOWN ON *.* TO &#039;debian-sys-maint&#039;@&#039;localhost&#039;;
GRANT SELECT ON `mysql`.`user` TO &#039;debian-sys-maint&#039;@&#039;localhost&#039;;

Because it needs to shutdown/startup, and does a test select from the users table as a sanity check to ensure the root user exists. This select is usually done by /usr/share/mysql/debian-start.inc.sh which is loaded by /etc/mysql/debian-start]]></description>
		<content:encoded><![CDATA[<p>You do NOT need to grant all permissions, this is a bad habit to get into from a security standpoint.</p>
<p>All you need to grant is this (as root or whoever):</p>
<p>GRANT SHUTDOWN ON *.* TO &#8216;debian-sys-maint&#8217;@'localhost&#8217;;<br />
GRANT SELECT ON `mysql`.`user` TO &#8216;debian-sys-maint&#8217;@'localhost&#8217;;</p>
<p>Because it needs to shutdown/startup, and does a test select from the users table as a sanity check to ensure the root user exists. This select is usually done by /usr/share/mysql/debian-start.inc.sh which is loaded by /etc/mysql/debian-start</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PalaDolphin</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-739</link>
		<dc:creator><![CDATA[PalaDolphin]]></dc:creator>
		<pubDate>Sat, 13 Mar 2010 15:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-739</guid>
		<description><![CDATA[This did not make the error go away.  It did, however, add debian-sys-maint user to my the Privileges list.]]></description>
		<content:encoded><![CDATA[<p>This did not make the error go away.  It did, however, add debian-sys-maint user to my the Privileges list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene Madsen</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-718</link>
		<dc:creator><![CDATA[Rene Madsen]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 00:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-718</guid>
		<description><![CDATA[Hi

Perfect solution, now we can use the Mysql again. 

Login to your mysql server using your root account and the root password you had originally set:

neo@thematrix:~$ mysql -u root -p 
Issue the GRANT command now to grant those permissions:

mysql&gt; GRANT ALL PRIVILEGES ON *.* TO &#039;debian-sys-maint&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;n4aSHUP04s1J32X5&#039;;]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Perfect solution, now we can use the Mysql again. </p>
<p>Login to your mysql server using your root account and the root password you had originally set:</p>
<p>neo@thematrix:~$ mysql -u root -p<br />
Issue the GRANT command now to grant those permissions:</p>
<p>mysql&gt; GRANT ALL PRIVILEGES ON *.* TO &#8216;debian-sys-maint&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;n4aSHUP04s1J32X5&#8242;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sohail Mirza</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-698</link>
		<dc:creator><![CDATA[Sohail Mirza]]></dc:creator>
		<pubDate>Fri, 16 Oct 2009 15:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-698</guid>
		<description><![CDATA[In my research of the solution, I can&#039;t say I did come across a bug filed for this issue.]]></description>
		<content:encoded><![CDATA[<p>In my research of the solution, I can&#8217;t say I did come across a bug filed for this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jere</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-697</link>
		<dc:creator><![CDATA[Jere]]></dc:creator>
		<pubDate>Fri, 16 Oct 2009 15:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-697</guid>
		<description><![CDATA[I see this is an older post, but just ran into this, myself. Reseting the debian-sys-maint password in mysql to match the debian.cnf file takes care of it - but do you know if there is a bug filed against this?

No other mysql passwords are reset during updates - so this seems odd to me.]]></description>
		<content:encoded><![CDATA[<p>I see this is an older post, but just ran into this, myself. Reseting the debian-sys-maint password in mysql to match the debian.cnf file takes care of it &#8211; but do you know if there is a bug filed against this?</p>
<p>No other mysql passwords are reset during updates &#8211; so this seems odd to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oogliby</title>
		<link>http://mirzmaster.wordpress.com/2009/01/16/mysql-access-denied-for-user-debian-sys-maintlocalhost/#comment-642</link>
		<dc:creator><![CDATA[Oogliby]]></dc:creator>
		<pubDate>Wed, 11 Feb 2009 12:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://mirzmaster.wordpress.com/?p=193#comment-642</guid>
		<description><![CDATA[Right tf on!]]></description>
		<content:encoded><![CDATA[<p>Right tf on!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
