最佳答案:1.打开cmd命令窗口,执行命令mysql -u root -p指定 root 用户登录 MySQL,输入后按回车键输入密码。2.使用 SET PASSWORD 修改密码 命令格式为 : set pa