登錄mysql後,使用set password for ‘username'@’localhost'=‘newpasswd’;mysql
或者 mysqladmin -u root -p password newpasswd;sql
注:mysql版本 8.01;word