惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
Attack and Defense Labs
Attack and Defense Labs
Google Online Security Blog
Google Online Security Blog
SecWiki News
SecWiki News
N
News and Events Feed by Topic
O
OpenAI News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
AI
AI
L
LINUX DO - 最新话题
S
Securelist
Cisco Talos Blog
Cisco Talos Blog
V
Vulnerabilities – Threatpost
Webroot Blog
Webroot Blog
T
Threatpost
A
Arctic Wolf
罗磊的独立博客
T
Tor Project blog
The Hacker News
The Hacker News
C
Cybersecurity and Infrastructure Security Agency CISA
N
News | PayPal Newsroom
Latest news
Latest news
Y
Y Combinator Blog
S
Schneier on Security
T
Troy Hunt's Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Security @ Cisco Blogs
量子位
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
L
Lohrmann on Cybersecurity
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Help Net Security
Help Net Security
腾讯CDC
The Last Watchdog
The Last Watchdog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed
Cloudbric
Cloudbric
Simon Willison's Weblog
Simon Willison's Weblog
AWS News Blog
AWS News Blog
NISL@THU
NISL@THU
GbyAI
GbyAI
B
Blog
Spread Privacy
Spread Privacy
宝玉的分享
宝玉的分享
S
Secure Thoughts
P
Palo Alto Networks Blog
Last Week in AI
Last Week in AI
D
Docker
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - Prolove

android 开源框架推荐 手机游戏玩家来源渠道统计方法 Centos+Nginx+PHP+Mysql 如何调整不良的 IT 管理习惯 Mysql 数据库优化的几个办法 URL 重写 DedeCms 生成性能终极优化策略 Red Hat Enterprise Linux AS release 4 下安装 gcc (转帖) linux 架设 subversion(svn) 版本控制[转载] js firefox3 下 fckeditor 插入超链接失效解决办法 Zend Studio 5.0 5.1 5.5 系列号 注册码 SN 不指定 google 病毒警告提示网站有病毒木马的解除方法 js 判断浏览器类型 iexplore.exe 应用程序错误 该内存不能为"read" 点击 input 框,框内提示消失效果 php 求某时间段的时间戳开始和结尾 通过SSH 解压缩 .tar.gz .gz .zip 文件的方法 PHP: Allowed memory size of 的解决
mysql 忘记 root 密码
Prolove · 2010-03-30 · via 博客园 - Prolove

打开 my.cnf
在[mysqld]的段中加上一句:skip-grant-tables
例如:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-name-resolve

skip-grant-tables

保存,退出。

重新启动 mysql 服务

cmd 进入 mysql bin 目录,

输入 mysql -u root -p

空密码进入,

输入 UPDATE user SET Password = password ('123456') WHERE User = 'root';

其中,"123456" 为你的新密码。