修改密码:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的新密码'
通过以下命令可以查看修改的账号密码:
use mysql;
select * from userG