mysql forget the password
生活随笔
收集整理的這篇文章主要介紹了
mysql forget the password
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
mysql?? 忘記密碼
1、停止mysqld 服務? service mysqld? stop
2、bin/mysqld_saft --skip-grant-tables 【--skip-network-tables】 $?? 跳過權限表和【網絡表】
3、mysql 登錄mysql服務
??? use mysql;
?? ?update user set password=PASSWORD(password) where user='root' and host='localhost';
4、重啟服務
新建用戶
?? insert into user (user,host,password) values('pencil','pencil',PASSWORD('PENCIL'));
?? ?
?? 腳本插入數據 ?
?? mysql -u root? phpcms < phpcms.sql? -p
???? flush privileges; 刷新權限
轉載于:https://blog.51cto.com/pencild/1416042
總結
以上是生活随笔為你收集整理的mysql forget the password的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [转]Emacs 系列教程
- 下一篇: Spring MVC与表单日期提交的问题