Windows10系統(tǒng)下Mysql8.0.13忘記root密碼的操作方法
1、首先停止mysql服務
管理員身份開啟CMD下命令關閉或者windows服務頁面關閉
C:\Users\xxx>net stop mysql

管理員身份開啟CMD頁面,輸入以下命令無密碼啟動mysql
C:\Users\xxx>mysqld --console --skip-grant-tables --shared-memory
看到如下頁面再開啟新的CMD頁面

在新的CMD頁面輸入如下
mysql> flush privileges; -- 修改權限 Query OK, 0 rows affected (0.16 sec) mysql> ALTER USER "root"@"localhost" IDENTIFIED BY "123456"; -- 修改密碼 Query OK, 0 rows affected (0.08 sec)
完成如上操作即完成修改密碼,退出可以共用新的密碼登陸了
附參考:mysql錯誤:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解決方法
下面繼續(xù)給大家講解的是mysql錯誤:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解決方法,感興趣的同學參考下。
錯誤描述:
mysql> grant all on cactidb.* to dbuser@'localhost' identified by '123'; ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
解決方法:
先刷新一下權限表。
mysql> flush privileges; Query OK, 0 rows affected (0.01 sec) mysql> grant all on cactidb.* to dbuser@'localhost' identified by '123'; Query OK, 0 rows affected (0.00 sec)
借鑒如下
https://www.jb51.net/article/203587.htm
到此這篇關于Windows10系統(tǒng)下Mysql8.0.13忘記root密碼的操作方法的文章就介紹到這了,更多相關Windows10 Mysql8.0.13忘記root密碼內容請搜索本站以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持本站!
版權聲明:本站文章來源標注為YINGSOO的內容版權均為本站所有,歡迎引用、轉載,請保持原文完整并注明來源及原文鏈接。禁止復制或仿造本網站,禁止在非maisonbaluchon.cn所屬的服務器上建立鏡像,否則將依法追究法律責任。本站部分內容來源于網友推薦、互聯(lián)網收集整理而來,僅供學習參考,不代表本站立場,如有內容涉嫌侵權,請聯(lián)系alex-e#qq.com處理。
關注官方微信