先配置好环境变量 在cmd中登录 mysql: 执行指令:set password for root@localhost = password('99999999'); 上面例子将用户root的密码更改为99999999;