UPDATE user SET password=PASSWORD('new_password') WHERE user='root';
alter user 'root'@'localhost' identified by 'newPassword'; 执行刷新权限,将上面的查询提交到系统中 flush privileges;set password for 'root'@'localhost'=password('123456');