當(dāng)前位置:
首頁(yè) >
mysql forget the password
發(fā)布時(shí)間:2025/7/14
52
豆豆
生活随笔
收集整理的這篇文章主要介紹了
mysql forget the password
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
mysql?? 忘記密碼
1、停止mysqld 服務(wù)? service mysqld? stop
2、bin/mysqld_saft --skip-grant-tables 【--skip-network-tables】 $?? 跳過(guò)權(quán)限表和【網(wǎng)絡(luò)表】
3、mysql 登錄mysql服務(wù)
??? use mysql;
?? ?update user set password=PASSWORD(password) where user='root' and host='localhost';
4、重啟服務(wù)
新建用戶
?? insert into user (user,host,password) values('pencil','pencil',PASSWORD('PENCIL'));
?? ?
?? 腳本插入數(shù)據(jù) ?
?? mysql -u root? phpcms < phpcms.sql? -p
???? flush privileges; 刷新權(quán)限
轉(zhuǎn)載于:https://blog.51cto.com/pencild/1416042
總結(jié)
以上是生活随笔為你收集整理的mysql forget the password的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: [转]Emacs 系列教程
- 下一篇: 数据库建模模板、菜单显示出问题解决方案