欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Windows10系統(tǒng)下Mysql8.0.13忘記root密碼的操作方法

 更新時間:2021年01月06日 11:38:59   作者:小x溪  
這篇文章主要給大家介紹了關(guān)于Windows10系統(tǒng)下Mysql8.0.13忘記root密碼的操作方法,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

1、首先停止mysql服務(wù)

管理員身份開啟CMD下命令關(guān)閉或者windows服務(wù)頁面關(guān)閉

C:\Users\xxx>net stop mysql

管理員身份開啟CMD頁面,輸入以下命令無密碼啟動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錯誤: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解決方法,感興趣的同學(xué)參考下。

錯誤描述:

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)

借鑒如下

http://www.dbjr.com.cn/article/203587.htm

到此這篇關(guān)于Windows10系統(tǒng)下Mysql8.0.13忘記root密碼的操作方法的文章就介紹到這了,更多相關(guān)Windows10 Mysql8.0.13忘記root密碼內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論