VIPTIME!

this is a test


$ sudo mysql -u root
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';
Query OK, 0 rows affected (0.00 sec)
mysql> quit;
Bye
$ mysql -u root -p
Enter password: new_password
Welcome to the MySQL monitor...

https://blog.csdn.net/net19880504/article/details/136523820

https://www.cnblogs.com/zuiyue_jing/p/14950129.html