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)
借鑒如下
http://www.dbjr.com.cn/article/203587.htm
到此這篇關于Windows10系統(tǒng)下Mysql8.0.13忘記root密碼的操作方法的文章就介紹到這了,更多相關Windows10 Mysql8.0.13忘記root密碼內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
mysql中l(wèi)eft join設置條件在on與where時的用法區(qū)別分析
這篇文章主要介紹了mysql中l(wèi)eft join設置條件在on與where時的用法區(qū)別,結合實例形式分析了mysql中l(wèi)eft join設置條件在on與where時的相關用法區(qū)別與操作注意事項,需要的朋友可以參考下2020-02-02mysql數(shù)據(jù)庫中字段的注釋和類型長度獲取方式
這篇文章主要介紹了mysql數(shù)據(jù)庫中字段的注釋和類型長度獲取方式,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教2024-01-01IP處理函數(shù)inet_aton()和inet_ntoa()使用說明
IP處理函數(shù)inet_aton()和inet_ntoa()使用說明,需要的朋友可以參考下2012-03-03