用root账号登陆:
mysql -h localhost -u root -p
卸载插件
uninstall plugin validate_password;
其他常用命令。
select Host,User,Password from mysql.user;
create user test identified by '123456';
grant all privileges on *.* to 'test'@'%'identified by '123456' with grant option; -- 刷新mysql用户权限
flush privileges ; -- 修改指定用户密码
update mysql.user set password=password('新密码') where User="test" and Host="localhost"; -- 删除用户
delete from user where User='test' and Host='localhost';