1、首先停止mysql服務(wù)
管理員身份開啟CMD下命令關(guān)閉或者windows服務(wù)頁面關(guān)閉
C:\Users\xxx>net stop mysql
管理員身份開啟CMD頁面,輸入以下命令無密碼啟動(dòng)mysql
C:\Users\xxx>mysqld --console --skip-grant-tables --shared-memory
看到如下頁面再開啟新的CMD頁面
在新的CMD頁面輸入如下
mysql> flush privileges; -- 修改權(quán)限 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錯(cuò)誤:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解決方法
下面繼續(xù)給大家講解的是mysql錯(cuò)誤:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解決方法,感興趣的同學(xué)參考下。
錯(cuò)誤描述:
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
解決方法:
先刷新一下權(quán)限表。
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
到此這篇關(guān)于Windows10系統(tǒng)下Mysql8.0.13忘記root密碼的操作方法的文章就介紹到這了,更多相關(guān)Windows10 Mysql8.0.13忘記root密碼內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
標(biāo)簽:鹽城 移動(dòng) 黔東 拉薩 沈陽 沈陽 珠海 徐州
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Windows10系統(tǒng)下Mysql8.0.13忘記root密碼的操作方法》,本文關(guān)鍵詞 Windows10,系統(tǒng),下,Mysql8.0.13,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。