MySQL 8.* 账号密码管理
修改密码:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的新密码'
通过以下命令可以查看修改的账号密码:
use mysql;
select * from user\G
修改密码:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的新密码'
通过以下命令可以查看修改的账号密码:
use mysql;
select * from user\G