<?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>Freddie&#039;s Ria World- MySql的root密码忘记了怎么办? &#8211; Blog Title</title>
	<atom:link href="http://javaflex.net/tag/reset-mysql-password/feed/" rel="self" type="application/rss+xml" />
	<link>http://javaflex.net</link>
	<description>Just another flex weblog</description>
	<lastBuildDate>Thu, 19 Aug 2010 08:28:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>zh</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySql的root密码忘记了怎么办?</title>
		<link>http://javaflex.net/linux/how-to-reset-mysql-password/</link>
		<comments>http://javaflex.net/linux/how-to-reset-mysql-password/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 03:23:46 +0000</pubDate>
		<dc:creator>Freddie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[reset mysql password]]></category>

		<guid isPermaLink="false">http://fred.icandy.me/?p=26</guid>
		<description><![CDATA[ 
最好用的mysql密码忘记的解决方法 ，经过测试，如果不能成功一般是你的mysql运行的不正常
解决办法：
在windows下：
复制代码 代码如下:
打开命令行窗口，停止mysql服务：
Net stop mysql
启动mysql，一般到mysql的安装路径，找到 mysqld-nt.exe
执行：mysqld-nt &#8211;skip-grant-tables 当前窗口将会停止。
另外打开一个命令行窗口，执行mysql 如果提示没有这个命令，先进入MYSQL的安装位置下BIN目录再运行mysql
&#62;use mysql
&#62;update user set password=password(&#8220;new_password&#8221;) where user=&#8221;root&#8221;;
&#62;flush privileges;
&#62;exit
用Ctrl+Alt+Del，找到mysqld-nt的进程杀掉它，在重新启动mysql-nt服务，就可以用新密码登录了
在linux下：
复制代码 代码如下:
如果 MySQL 正在运行，首先杀之： killall -TERM mysqld。
启动 MySQL ：bin/safe_mysqld &#8211;skip-grant-tables &#38;
就可以不需要密码就进入 MySQL 了。
然后就是
&#62;use mysql
&#62;update user set password=password(&#8220;new_pass&#8221;) where user=&#8221;root&#8221;;
&#62;flush privileges;
重新杀 MySQL ，用正常方法启动 
您可能也会关注:linux yum安装mysql后要注意的一些初始化问题CentOS 5.3安装WordPress 2.7.1在centos安装magentoSpring中常用的hql查询方法(getHibernateTemplate())(转)spring+blazeds动态配置channelSet




		
			Share this on del.icio.us
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Subscribe to the comments for this post?
		
		
			Add this [...]]]></description>
			<content:encoded><![CDATA[<h2> </h2>
<p><span style="font-family: Arial;">最好用的mysql密码忘记的解决方法 ，经过测试，如果不能成功一般是你的mysql运行的不正常<br />
解决办法：<br />
在windows下：<br />
复制代码 代码如下:<br />
打开命令行窗口，停止mysql服务：<br />
Net stop mysql<br />
启动mysql，一般到mysql的安装路径，找到 mysqld-nt.exe<br />
执行：mysqld-nt &#8211;skip-grant-tables 当前窗口将会停止。<br />
另外打开一个命令行窗口，执行mysql 如果提示没有这个命令，先进入MYSQL的安装位置下BIN目录再运行mysql<br />
&gt;use mysql<br />
&gt;update user set password=password(&#8220;new_password&#8221;) where user=&#8221;root&#8221;;<br />
&gt;flush privileges;<br />
&gt;exit<br />
用Ctrl+Alt+Del，找到mysqld-nt的进程杀掉它，在重新启动mysql-nt服务，就可以用新密码登录了</span></p>
<p><span style="font-family: Arial;">在linux下：<br />
复制代码 代码如下:<br />
如果 MySQL 正在运行，首先杀之： killall -TERM mysqld。<br />
启动 MySQL ：bin/safe_mysqld &#8211;skip-grant-tables &amp;<br />
就可以不需要密码就进入 MySQL 了。<br />
然后就是<br />
&gt;use mysql<br />
&gt;update user set password=password(&#8220;new_pass&#8221;) where user=&#8221;root&#8221;;<br />
&gt;flush privileges;<br />
重新杀 MySQL ，用正常方法启动 </span></p>
<div id="crp_related"><h3>您可能也会关注:</h3><ul><li><a href="http://javaflex.net/linux/linux-yum-install-mysq/" rel="bookmark" class="crp_title">linux yum安装mysql后要注意的一些初始化问题</a></li><li><a href="http://javaflex.net/linux/centos-5-3-install-wordpress-2-7-1/" rel="bookmark" class="crp_title">CentOS 5.3安装WordPress 2.7.1</a></li><li><a href="http://javaflex.net/linux/install-magento-on-centos/" rel="bookmark" class="crp_title">在centos安装magento</a></li><li><a href="http://javaflex.net/java/spring-hql-gethibernatetemplate/" rel="bookmark" class="crp_title">Spring中常用的hql查询方法(getHibernateTemplate())(转)</a></li><li><a href="http://javaflex.net/flex/springblazedschannelset/" rel="bookmark" class="crp_title">spring+blazeds动态配置channelSet</a></li></ul></div>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://javaflex.net/linux/how-to-reset-mysql-password/&amp;title=MySql%E7%9A%84root%E5%AF%86%E7%A0%81%E5%BF%98%E8%AE%B0%E4%BA%86%E6%80%8E%E4%B9%88%E5%8A%9E%3F" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://javaflex.net/linux/how-to-reset-mysql-password/&amp;t=MySql%E7%9A%84root%E5%AF%86%E7%A0%81%E5%BF%98%E8%AE%B0%E4%BA%86%E6%80%8E%E4%B9%88%E5%8A%9E%3F" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=MySql%E7%9A%84root%E5%AF%86%E7%A0%81%E5%BF%98%E8%AE%B0%E4%BA%86%E6%80%8E%E4%B9%88%E5%8A%9E%3F+-+http://b2l.me/q2nqs+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://javaflex.net/linux/how-to-reset-mysql-password/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://javaflex.net/linux/how-to-reset-mysql-password/&amp;title=MySql%E7%9A%84root%E5%AF%86%E7%A0%81%E5%BF%98%E8%AE%B0%E4%BA%86%E6%80%8E%E4%B9%88%E5%8A%9E%3F" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://javaflex.net/linux/how-to-reset-mysql-password/&amp;title=MySql%E7%9A%84root%E5%AF%86%E7%A0%81%E5%BF%98%E8%AE%B0%E4%BA%86%E6%80%8E%E4%B9%88%E5%8A%9E%3F&amp;srcUrl=http://javaflex.net/linux/how-to-reset-mysql-password/&amp;srcTitle=MySql%E7%9A%84root%E5%AF%86%E7%A0%81%E5%BF%98%E8%AE%B0%E4%BA%86%E6%80%8E%E4%B9%88%E5%8A%9E%3F&amp;snippet=POST_SUMMARY" rel="nofollow" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="sexy-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://javaflex.net/linux/how-to-reset-mysql-password/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://javaflex.net/linux/how-to-reset-mysql-password/&amp;n=MySql%E7%9A%84root%E5%AF%86%E7%A0%81%E5%BF%98%E8%AE%B0%E4%BA%86%E6%80%8E%E4%B9%88%E5%8A%9E%3F&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://javaflex.net/linux/how-to-reset-mysql-password/&amp;title=MySql%E7%9A%84root%E5%AF%86%E7%A0%81%E5%BF%98%E8%AE%B0%E4%BA%86%E6%80%8E%E4%B9%88%E5%8A%9E%3F&amp;description=POST_SUMMARY" rel="nofollow" title="Add this to DZone">Add this to DZone</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://javaflex.net/linux/how-to-reset-mysql-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
