一、 进入MySQL,打开要用navicat连接的数据库二、打开运行以下代码:ALTER USER 'root'@'localhost' IDENTIFIED BY '你的mysql密码' PASSWORD EXPIRE NEVER; #修改加密规则ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的mysql密码'; #修改密码FLUSH PRIVILEGES; #刷新数据