0、 mysql -u root -p
1、 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456');
2、 ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;