<?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>John Bernard Abella [blog] &#187; root password</title>
	<atom:link href="http://www.johnbernardabella.com/tag/root-password/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnbernardabella.com</link>
	<description>A System Admin's Notebook, A Progrmmers Journal</description>
	<lastBuildDate>Wed, 16 Jun 2010 13:27:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Recovering from a forgotten root password</title>
		<link>http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/</link>
		<comments>http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 17:37:57 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[change password]]></category>
		<category><![CDATA[change root password]]></category>
		<category><![CDATA[linux password]]></category>
		<category><![CDATA[recover root password]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[reset root password]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/07/rocovering-from-a-forgotten-root-password/</guid>
		<description><![CDATA[To perform a system administrator task, you have to know the root password.  What happens if you forgot your root password?  Not to worry. Just reboot your PC and you can reset the root password by following these steps:

Reboot the PC(select reboot as you log out the of the GUI) or power up [...]]]></description>
			<content:encoded><![CDATA[<p>To perform a system administrator task, you have to know the root password.  What happens if you forgot your root password?  Not to worry. Just reboot your PC and you can reset the root password by following these steps:</p>
<ol>
<li>Reboot the PC(select reboot as you log out the of the GUI) or power up a usual.<br />
<blockquote><p>Soon you see the graphical boot loader on screen that shows the name of the operating systems you can boot.  If your system runs with LILO boot loader, press <code>Ctrl+X</code> and at the boot prompt type <code>linux single</code> and press enter. Then proceed to step 4.</p></blockquote>
<p>
</li>
<li>If you have more than one operating system installed, use the arrow key to select linux as operating system, then press the A key.</li>
<blockquote><p>GRUB prompts you for commands to add to its defualt boot command.</p></blockquote>
<li>Press the spacebar, type the following, and press enter:</li>
<blockquote><p><code>single</code></p>
<p>Linux starts up as usual but runs in a single-user mode that do not require you to log in.  After linux starts, you will see the following command line prompts that ends with a hash mark (#), similar to the following :</p>
<p><code>sh-2.05b#</code></p></blockquote>
<li>Type the <code>paswrd</code> command to change the <code>root</code> password as follows:</li>
<blockquote><p><code>sh-2.05b# passwd<br />
Changing password for root user.<br />
New password:</code></p></blockquote>
<li>Type the new <code>root</code> password that you want to use (it doesn&#8217;t appear on screen) and then press enter.</li>
<blockquote><p>Linux asks for the password again, like this:</p>
<p><code>Retype new password:</code></p></blockquote>
<li>Type the new password again, and press enter.</li>
<blockquote><p>If you enter the same password both times, the <code>passwrd </code>command changes the <code>root</code> password.</p></blockquote>
<li>Now type reboot to reboot the PC.</li>
<blockquote><p>After linux starts, it displays the familiar login screen.  Now you can log in as <code>root</code> with the new password</p></blockquote>
</ol>
<p></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;t=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Recovering+from+a+forgotten+root+password+-+http://b2l.me/ccvht+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password&amp;summary=To%20perform%20a%20system%20administrator%20task%2C%20you%20have%20to%20know%20the%20root%20password.%20%20What%20happens%20if%20you%20forgot%20your%20root%20password%3F%20%20Not%20to%20worry.%20Just%20reboot%20your%20PC%20and%20you%20can%20reset%20the%20root%20password%20by%20following%20these%20steps%3A%0D%0A%0D%0A%09Reboot%20the%20PC%28select%20reboot%20as%20you%20log%20out%20the%20of%20the%20GUI%29%20or%20power%20up%20a%20us&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;n=Recovering+from+a+forgotten+root+password&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password&amp;desc=To%20perform%20a%20system%20administrator%20task%2C%20you%20have%20to%20know%20the%20root%20password.%20%20What%20happens%20if%20you%20forgot%20your%20root%20password%3F%20%20Not%20to%20worry.%20Just%20reboot%20your%20PC%20and%20you%20can%20reset%20the%20root%20password%20by%20following%20these%20steps%3A%0D%0A%0D%0A%09Reboot%20the%20PC%28select%20reboot%20as%20you%20log%20out%20the%20of%20the%20GUI%29%20or%20power%20up%20a%20us" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;submitHeadline=Recovering+from+a+forgotten+root+password&amp;submitSummary=To%20perform%20a%20system%20administrator%20task%2C%20you%20have%20to%20know%20the%20root%20password.%20%20What%20happens%20if%20you%20forgot%20your%20root%20password%3F%20%20Not%20to%20worry.%20Just%20reboot%20your%20PC%20and%20you%20can%20reset%20the%20root%20password%20by%20following%20these%20steps%3A%0D%0A%0D%0A%09Reboot%20the%20PC%28select%20reboot%20as%20you%20log%20out%20the%20of%20the%20GUI%29%20or%20power%20up%20a%20us&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;t=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Recovering+from+a+forgotten+root+password&amp;text=To%20perform%20a%20system%20administrator%20task%2C%20you%20have%20to%20know%20the%20root%20password.%20%20What%20happens%20if%20you%20forgot%20your%20root%20password%3F%20%20Not%20to%20worry.%20Just%20reboot%20your%20PC%20and%20you%20can%20reset%20the%20root%20password%20by%20following%20these%20steps%3A%0D%0A%0D%0A%09Reboot%20the%20PC%28select%20reboot%20as%20you%20log%20out%20the%20of%20the%20GUI%29%20or%20power%20up%20a%20us+-+http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Resetting Mysql root Password</title>
		<link>http://www.johnbernardabella.com/resetting-mysql-root-password/</link>
		<comments>http://www.johnbernardabella.com/resetting-mysql-root-password/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 12:37:59 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql root password]]></category>
		<category><![CDATA[mysqld password]]></category>
		<category><![CDATA[recover mysql password]]></category>
		<category><![CDATA[recover password]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/06/resetting-mysql-root-password/</guid>
		<description><![CDATA[&#8216;Like locking your keys in the car, to forget your password after
you&#8217;ve spent an hour installing and tweaking a new MySQL server can be
an embarassment to say the least.&#8217;

Fortunately, if you have root access to that computer, all in NOT lost.
Here are the steps when you found yourself in this situation.
1. Kill the server process.
% [...]]]></description>
			<content:encoded><![CDATA[<p>&#8216;Like locking your keys in the car, to forget your password after<br />
you&#8217;ve spent an hour installing and tweaking a new MySQL server can be<br />
an embarassment to say the least.&#8217;<br />
<br />
Fortunately, if you have root access to that computer, all in NOT lost.</p>
<p>Here are the steps when you found yourself in this situation.</p>
<p>1. Kill the server process.<br />
<code>% kill pid</code><br />
(where pid is the process id. Do not use kill -9 unless absolutely<br />
necessary, as this may damage your table files)</p>
<p>2. Run safe-mysqld with the &#8211;skip-grant-tables command line option.<br />
(This instructs the MySQL server to allow unrestricted access to<br />
anyone) NOTE: restrict all remote access before issuing this command<br />
<code>% safe-mysqld --skip-grant-table</code></p>
<p>3. Change root password<br />
<code>mysql &gt; use mysql;<br />
mysql &gt; update user set password = password('newpassword') where user<br />
= 'root';</code><br />
<br />
4. Disconnect and instruct the mysql server to reload the grants<br />
tables to begin requiring passwords.<br />
<code>% mysqladmin flush-privileges</code></p>
<p>&#8220;That does it &#8212; and nobody ever has to know what you did. As for<br />
locking your keys in your car, you&#8217;re on your own there.&#8221;</p>
<p>Must have for php-mysql beginners developers.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;t=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Resetting+Mysql+root+Password+-+http://b2l.me/ccvhu+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password&amp;summary=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;n=Resetting+Mysql+root+Password&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/resetting-mysql-root-password/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/resetting-mysql-root-password/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password&amp;desc=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;submitHeadline=Resetting+Mysql+root+Password&amp;submitSummary=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;t=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Resetting+Mysql+root+Password&amp;text=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found+-+http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/resetting-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
