参考 mysql修改用户密码的方法及命令 MySQL安装成功后dos命令行设置密码 重置密码解决MySQL for Linux错误 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)