<?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>Overthink &#187; lost</title>
	<atom:link href="http://overthink.co.uk/tag/lost/feed/" rel="self" type="application/rss+xml" />
	<link>http://overthink.co.uk</link>
	<description></description>
	<lastBuildDate>Tue, 06 Apr 2010 10:19:59 +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>Lost your mysql root password?</title>
		<link>http://overthink.co.uk/2010/02/03/lost-your-mysql-root-password/</link>
		<comments>http://overthink.co.uk/2010/02/03/lost-your-mysql-root-password/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 10:58:13 +0000</pubDate>
		<dc:creator>Robbie Scourou</dc:creator>
				<category><![CDATA[of interest]]></category>
		<category><![CDATA[eadn]]></category>
		<category><![CDATA[lost]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://overthink.co.uk/?p=97</guid>
		<description><![CDATA[Thought I would make a short instructive post as twice in the last month or so I&#8217;ve seen people come across this problem and not know how to resolve it. In one instance, the user had re-installed mysql and stuffed the server slightly.
If you have command line access to the server, and can login as [...]]]></description>
			<content:encoded><![CDATA[<p>Thought I would make a short instructive post as twice in the last month or so I&#8217;ve seen people come across this problem and not know how to resolve it. In one instance, the user had re-installed mysql and stuffed the server slightly.</p>
<p>If you have command line access to the server, and can login as a root user (or use sudo), do the following to reset your mysql root password.</p>
<ol>
<li>Stop the mysql server, either by directly killing it, or using a startup script (recommended).</li>
<li>Create a text file on the server with the following in it (replace &#8220;somepassword&#8221; with your new password):
<pre>UPDATE mysql.user SET Password=PASSWORD('somepassword') WHERE User='root';
FLUSH PRIVILEGES;</pre>
</li>
<li>Start the mysql server manually, using the &#8211;init-file switch:
<pre>mysqld_safe --init-file=/path/to/file/created/above &amp;</pre>
</li>
<li>Your mysql root password should now be reset, test it out.</li>
<li>If you can connect using the new authentication details, delete the created file, and then stop the mysqld service and start again using the correct startup scripts for your system</li>
</ol>
<p>Simple as that. No need to re-install any software, nuke your data, or spend longer then 15 mins fixing the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://overthink.co.uk/2010/02/03/lost-your-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
