用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)可以连接上了

相关推荐
千寻技术帮30 分钟前
10361_基于Springboot的哈尔滨旅游管理系统
数据库·spring boot·mysql·毕业设计·旅游
TG:@yunlaoda360 云老大2 小时前
华为云国际站代理商GES的图引擎服务有哪些优势?
服务器·数据库·华为云
Coder_Boy_7 小时前
基于SpringAI的智能平台基座开发-(六)
java·数据库·人工智能·spring·langchain·langchain4j
热爱专研AI的学妹8 小时前
数眼搜索API与博查技术特性深度对比:实时性与数据完整性的核心差异
大数据·开发语言·数据库·人工智能·python
hopsky8 小时前
ShardingSphere功能简介
数据库·sql
talenteddriver8 小时前
mysql: MySQL索引和排序相关名词概念汇总
数据库·mysql
6极地诈唬8 小时前
【PG漫步】DELETE不会改变本地文件的大小,VACUUM也不会
linux·服务器·数据库
MZWeiei9 小时前
Redis持久化机制中的 AOF机制简单介绍
数据库·redis
Elastic 中国社区官方博客9 小时前
Elasticsearch:在 X-mas 吃一些更健康的东西
android·大数据·数据库·人工智能·elasticsearch·搜索引擎·全文检索
酷柚易汛9 小时前
酷柚易汛ERP 2025-12-26系统升级日志
java·前端·数据库·php