<?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>系统运维 &#187; MySQL root</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/mysql-root/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>linux下忘记mysql root密码解决办法</title>
		<link>https://www.osyunwei.com/archives/2014.html</link>
		<comments>https://www.osyunwei.com/archives/2014.html#comments</comments>
		<pubDate>Wed, 01 Feb 2012 05:43:01 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[MySQL root]]></category>
		<category><![CDATA[忘记root密码]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=2014</guid>
		<description><![CDATA[引言：在linux系统中，如果忘记了MySQL的root密码，有没有办法重新设置新密码呢？  答案是肯定的，下面教大家一个比较简单的重置MySQL root密码的办法： 1、编辑MySQL配置文件my.cnf 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 vi /etc/my.cnf    #编辑文件，找到[mysqld]，在下面添加一行skip-grant-tables [mysqld] skip-grant-tables :wq!  #保存退出 service mysqld restart  #重启MySQL服务 2、进入MySQL控制台 mysql -uroot -p   #直接按回车，这时不需要输入root密码。 3、修改root密码 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 update mysql.user set password=password('123456') where User="root" and Host="localhost"; flush privileges;  #刷新系统授权表 grant all on *.* to 'root'@'localhost' identified by '123456' with grant option; 4、取消/etc/my.cnf中的skip-grant-tables vi /etc/my.cnf   编辑文件，找到[mysqld]，删除skip-grant-tables这一行 :wq!  [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/2014.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/2014.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
