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;
网友评论