1 连接数据库 点击左下角测试一下 提示 输入 select host,user,plugin,authentication_string from mysql.user; 查看用户信息 注意这里我们的密码是空的,Navicat不能无密码登录. 2 修改密码 使用 alert user 'root'@'localhost' identified by '123456'; 将密码修改为123456 如果你报1064错误,注意有没有缺少空格,user后面和identified 前面要有空格. mys