mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';
Query OK, 0 rows affected (0.10 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
本文介绍了如何使用MySQL原生密码插件更改root用户的密码,并强调了执行flush privileges命令以更新权限缓存的重要性。
mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';
Query OK, 0 rows affected (0.10 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
1378
4903
1万+
537
7801

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