欢迎来到安信科技官方网站!【www.anxin66.com】
18112005550
工作时间: 8:30-21:30
新闻中心
News Center

Navicat无法连接mysql8.0的解决方法

资讯分类: 建站经验  浏览: 2023年11月24日

使用MySQL客户端Navicat连接数据库MySQL8.0,MySQL8.0 之前的版本中加密规则是mysql_native_password,而MySQL8.0,加密规则是caching_sha2_password

在DOS下登录mysql,再执行以下代码即可:


alter user 'root'@'localhost' identified by '新密码' password expire never;
alter user 'root'@'localhost' identified with mysql_native_password by '新密码';


Copyright © 2007-2024 安信科技(十五周年纪念版) All Rights Reserved  备案号:苏ICP备15047094号-3 
网站首页 |  新闻资讯 |  服务项目 |  软件产品 |  试用下载 |  需求提交 |  模版建站 |  关于安信 |  产品授权 |  联系我们 |  定制开发 | 
服务热线:181-1200-5550  客服QQ: 120094883  | 邮箱:120094883#qq.com(#改@)