mysql> SET PASSWORD FOR root@localhost = PASSWORD('newpass'); 执行以上命令可将root用户的密码修改为newpass 转载于:https://www.cnblogs.com/cuixiaochen/p/4650646.html