<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/reset-mysql-root-password-html/</link>
<title><![CDATA[怎样才能重置MySQL的root用户密码]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[数据库]]></category>
<pubDate>Wed, 01 Sep 2010 12:30:17 +0000</pubDate> 
<guid>https://www.heckjj.com/reset-mysql-root-password-html/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: 微软雅黑;">有时候可能大家会忘记mysql 数据库root用户的密码，因为一般不用嘛，按以下几个步骤可以重置mysql数据库root用户的密码。<br/><a href="http://www.hecks.tk/plugin/album/pictures/2a09fd5295c23e6d9a2a79e5adfc5463.gif" target="_blank"><img src="http://www.hecks.tk/plugin/album/pictures/2a09fd5295c23e6d9a2a79e5adfc5463.gif" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>步骤：<br/><a href="http://www.hecks.tk/plugin/album/pictures/1738074.gif" target="_blank"><img src="http://www.hecks.tk/plugin/album/pictures/1738074.gif" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>1、首先停止正在运行的MySQL进程 <br/>Linux下,运行 killall -TERM mysqld <br/>Windows下,如果写成服务的 可以运行:net stop mysql,如未加载为服务,可直接在进程管理器中进行关闭。 <br/><br/>2、以安全模式启动MySQL <br/>Linux下,运行 /usr/local/mysql/bin/mysqld_safe --skip-grant-tables & <br/>Windows下,在命令行下运行 X:/MySQL/bin/mysqld-nt.exe --skip-grant-tables <br/><br/>3、完成以后就可以不用密码进入MySQL了 <br/>Linux下,运行 /usr/local/mysql/bin/mysql -u root -p 进入 <br/>Windows下,运行 X:/MySQL/bin/mysql -u root -p 进入 <br/><br/>4、更改密码 <br/>>use mysql&nbsp;&nbsp;<br/>>update user set password=password("新密码") where user="root";&nbsp;&nbsp;<br/>>flush privileges;&nbsp;&nbsp;<br/>注:如是4.1以上版本则使用old_password()函数进行密码更改。</span><br/>Tags - <a href="https://www.heckjj.com/tags/mysql/" rel="tag">mysql</a> , <a href="https://www.heckjj.com/tags/%25E9%2587%258D%25E7%25BD%25AEmysql%25E5%25AF%2586%25E7%25A0%2581/" rel="tag">重置mysql密码</a>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/reset-mysql-root-password-html/#blogcomment</link>
<title><![CDATA[[评论] 怎样才能重置MySQL的root用户密码]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/reset-mysql-root-password-html/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>