https://www.cnblogs.com/yang82/p/7794712.html
mysqladmin -uroot -p123456 password 123
set password for root@localhost = password('123');
use mysql;
update user set password=password('123') where user='root' and host='localhost';
flush privileges;
PS: 若你觉得可以、还行、过得去、甚至不太差的话,可以“关注”一下,就此谢过!