用SQLyog连接mysql提示2058错误

1)在cmd下(必须是这个,不能是gitbash)

复制代码
// step1:修改下数据库
C:\Users\elex>mysql -uroot -p
Enter password: ****
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 97
Server version: 8.1.0 MySQL Community Server - GPL

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


// step2: 修改下密码
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
Query OK, 0 rows affected (0.07 sec)

2)可以连接上了

相关推荐
数据知道6 分钟前
PostgreSQL实战:一文掌握 pg_hba.conf 配置,涵盖密码认证、IP限制与安全策略
数据库·tcp/ip·postgresql
数据知道12 分钟前
PostgreSQL实战:序列深度解析,高并发下的ID生成陷阱与优化
数据库·postgresql
Mr__Miss18 分钟前
Redis网络模型
数据库·redis·面试
妄汐霜23 分钟前
小白学习笔记(MySQL基础中其他知识)
笔记·学习·mysql
哈__23 分钟前
2026 年国产时序数据库技术深度解析:多模态融合架构与工程实践
数据库·架构·时序数据库
亲爱的非洲野猪23 分钟前
Apigee Hybrid 数据存储架构详解:Redis与数据库的精确分工
数据库·redis·架构
不想写bug呀26 分钟前
Redis基础知识及五种类型操作
数据库·redis·缓存
小宇的天下1 小时前
Cadence allegro---Design Compare
数据库
jay神1 小时前
基于Java的水果网上订购平台
java·mysql·vue·springboot·计算机毕业设计
小北方城市网1 小时前
SpringBoot 集成 MyBatis-Plus 实战(高效 CRUD 与复杂查询):简化数据库操作
java·数据库·人工智能·spring boot·后端·安全·mybatis