停止mysql服务
使用mysqld_safe --skip-grant-tables & 进行启动mysql
使用UPDATE user SET Password = OLD_PASSWORD('密码') where user='用户名'  修改密码
注意:一定要使用OLD_PASSWORD()