
用Navicat修改密码验证方式。MySQL Workbench的Server菜单中的Users and Privileges菜单中似乎不支持此项修改。

修改完毕以后也许会报错:
Access denied for user ‘root‘@‘localhost‘ (using password: YES)
用以下命令无密进入mysql。
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld --console --skip-grant-tables --shared-memory
用以下命令修改密码。
mysql> alter user 'root'@'localhost' identified by 'xxxxxx';
本文讲述了如何在Navicat无法修改MySQLWorkbench的密码情况下,通过`mysqld--console--skip-grant-tables--shared-memory`命令无密登录,然后使用`alteruser`语句来修改root用户的密码,以及可能遇到的Accessdenied问题解决方案。
807

被折叠的 条评论
为什么被折叠?



