use mysql;
update user set authentication_string='' where user='root'
ALTER user 'root'@'localhost' IDENTIFIED BY '新密码'
这篇博客介绍了如何使用MySQL命令更新用户权限,设置root用户的认证字符串为空,并通过ALTER语句更改root用户的密码。这涉及到数据库的安全管理和用户访问控制。
use mysql;
update user set authentication_string='' where user='root'
ALTER user 'root'@'localhost' IDENTIFIED BY '新密码'
1397

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