<?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>tech stuff &#187; reset root password</title>
	<atom:link href="http://codytaylor.org/tag/reset-root-password/feed" rel="self" type="application/rss+xml" />
	<link>http://codytaylor.org</link>
	<description>From Cody Taylor.</description>
	<lastBuildDate>Sun, 30 Oct 2011 04:15:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reset Mysql Root Password On Linux</title>
		<link>http://codytaylor.org/2009/10/reset-mysql-root-password-on-linux.html</link>
		<comments>http://codytaylor.org/2009/10/reset-mysql-root-password-on-linux.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 01:19:03 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[reset mysql root password]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[reset root password]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14294</guid>
		<description><![CDATA[If you have root access to a linux server and you don't have the root mysql password, but need it..]]></description>
			<content:encoded><![CDATA[<p>If you have root access to a linux server and you don&#8217;t have the root mysql password, but need it, then you can easily reset the root mysql password in just a few commands. These commands probably differ depending on what linux distro you use. I was using Ubuntu 9.04 (Jaunty Jackalope) when I wrote this.</p>
<p>Firstly you will want to turn the mysql service off.<br />
<pre><code>
codytaylor@server:~$ sudo /etc/init.d/mysql stop
 * Stopping MySQL database server mysqld&nbsp;&nbsp; 
</code></pre><br />
Now we restart the mysql server with the &#8217;skip-grant-tables&#8217; option which basically allows anyone to do whatever they like. It&#8217;s usually preferable to include the &#8217;skip-networking&#8217; option so that only localhost (you) have access to the naked database.<br />
<pre><code>
 codytaylor@server:~$ sudo mysqld_safe --skip-grant-tables --skip-networking &amp;
</code></pre><br />
Now all that is left is actually changing the root password. Log into the mysql monitor and change the root password.<br />
<pre><code>
codytaylor@server:~$ mysql -u root mysql
mysql&gt; UPDATE user SET Password=PASSWORD(&#039;password&#039;) WHERE User=&#039;root&#039;;
mysql&gt; FLUSH PRIVILEGES;
</code></pre><br />
Those commands will reset the root mysql password to &#8216;password&#8217;. Now you&#8217;ll probably want to restart the mysql service and have it run normally.<br />
<pre><code>
codytaylor@server:~$ sudo /etc/init.d/mysql restart
</code></pre></p>
<p>If you are using windows and you want to reset the mysql root password then check the <a href='http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html' title='mysql documentation'>mysql documentation</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F10%2Freset-mysql-root-password-on-linux.html&amp;linkname=Reset%20Mysql%20Root%20Password%20On%20Linux"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/10/reset-mysql-root-password-on-linux.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

