use mysql;
mysql5.7可以使用:
update mysql.user set authentication_string=password('123456#Abc') where user='root'
mysql 8使用:
update user set authentication_string='123456#Abc' where user='root';
五、添加用户
假设你进入mysql
添加test用户,暗码123456
insert into mysql.user(Host,User,authentication_string) values("localhost","test",password("123456"));