<?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>JasonSamuel.com &#187; MySQL</title>
	<atom:link href="http://www.jasonsamuel.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonsamuel.com</link>
	<description>Cool stuff I see in the IT world</description>
	<lastBuildDate>Sat, 17 Jul 2010 21:35:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to reset the root user account for a MySQL database</title>
		<link>http://www.jasonsamuel.com/2009/12/02/how-to-reset-the-root-user-account-for-a-mysql-database/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-reset-the-root-user-account-for-a-mysql-database</link>
		<comments>http://www.jasonsamuel.com/2009/12/02/how-to-reset-the-root-user-account-for-a-mysql-database/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 17:19:37 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=289</guid>
		<description><![CDATA[Sometimes you may inherit a MySQL databse server and have no credentials to access anything.  None of the default accounts work.  Your only option is to reset the root user account password.  This is very easy to do. 1. Open up Windows Task Manager and stop the mysqld.exe (MySQL daemon) process. 2. Open up Computer [...]<p><a href="http://www.jasonsamuel.com/2009/12/02/how-to-reset-the-root-user-account-for-a-mysql-database/">How to reset the root user account for a MySQL database</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>



More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/' rel='bookmark' title='Permanent Link: How to clear a hung profile in Urchin 6'>How to clear a hung profile in Urchin 6</a></li>
<li><a href='http://www.jasonsamuel.com/2009/02/09/how-to-remove-a-hidden-user-from-a-bes-server/' rel='bookmark' title='Permanent Link: How to remove a hidden user from a BES server'>How to remove a hidden user from a BES server</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may inherit a MySQL databse server and have no credentials to access anything.  None of the default accounts work.  Your only option is to reset the root user account password.  This is very easy to do.</p>
<p>1. Open up Windows Task Manager and stop the mysqld.exe (MySQL daemon) process.<br />
2. Open up Computer Management &gt; Services &gt; and stop the MySQL service if it isn&#8217;t already stopped.<br />
3. Open up a command prompt and go to your MySQL bin folder, for example:</p>
<blockquote><p> C:\Program Files\MySQL\MySQL Server 5.1\bin</p></blockquote>
<p>then type in:</p>
<blockquote><p> mysqld.exe &#8211;skip-grant-tables</p></blockquote>
<p>this will restart the MySQL daemon process.</p>
<p>4. Now type in:</p>
<blockquote><p> mysql.exe -u root</p></blockquote>
<p>and it should log you right in as the root user without having to specify a password.</p>
<p>5. Now you need to reset the password.  Type:</p>
<blockquote><p> UPDATE mysql.user SET Password=PASSWORD(&#8216;MyNewPassword&#8217;) WHERE User=&#8217;root&#8217;;</p></blockquote>
<p>You can change the password to whatever you want.  I have set it to &#8220;MyNewPassword&#8221; above.</p>
<p>6. Now type:</p>
<blockquote><p> FLUSH PRIVILEGES;</p></blockquote>
<p>and you&#8217;re done!  Try logging in using your new credentials and it should work just fine.  Don&#8217;t forget to verify that your MySQL service has been restarted.</p>
<p><a href="http://www.jasonsamuel.com/2009/12/02/how-to-reset-the-root-user-account-for-a-mysql-database/">How to reset the root user account for a MySQL database</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>


<p>More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/' rel='bookmark' title='Permanent Link: How to clear a hung profile in Urchin 6'>How to clear a hung profile in Urchin 6</a></li>
<li><a href='http://www.jasonsamuel.com/2009/02/09/how-to-remove-a-hidden-user-from-a-bes-server/' rel='bookmark' title='Permanent Link: How to remove a hidden user from a BES server'>How to remove a hidden user from a BES server</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2009/12/02/how-to-reset-the-root-user-account-for-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: www.jasonsamuel.com @ 2010-07-31 20:12:04 -->