mysql -u root -p use mysql; update mysql.user set authentication_string=password(‘密码’) where user=’root’ ; 重启