解决方案: 进入mysql中,输入一下命令: alter user ‘root’@’localhost’ identified by ‘root’; //当让也可以为其他用户这样做 flush privileges;