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

相关推荐
扑火的小飞蛾7 分钟前
生产级SOP:MySQL二进制安装与多实例部署实战(5.6/5.7/8.0/8.4全版本)
数据库·mysql·adb
Pniubi8 分钟前
数据迁移里的四个核心位点:分清持久、实时与一次性水位
数据库·binlog·迁移
小张成长计划..26 分钟前
【Linux】44:五种IO模型与非阻塞IO
java·服务器·数据库
这里是北京1 小时前
SQL 窗口函数 LAST_VALUE 取错值?从设备巡检报表看懂 ROWS 与 RANGE
数据库·sql
箓维1 小时前
MySQL_表的约束
android·数据库·mysql
GuWenyue2 小时前
昵称限 20 字,8 个 emoji 却超长:一个「字」在系统里有四种长度
javascript·数据库·后端
玫瑰互动GEO2 小时前
M4推理成本信号:架构优化改写GEO竞争逻辑
大数据·数据库·人工智能·ai·架构·m4·geo优化
南棱笑笑生2 小时前
20261127在RK3576的Android14系统下适配2个以太网卡RTL821F-CG【无外部晶振模式】
linux·服务器·数据库·驱动开发
前端精髓2 小时前
三种方式实现 Agent 工具调用:OpenAI、LangChain 与 LangGraph
前端·数据库·langchain
Ryan-Zhong2 小时前
视频解析 API 拒绝解析怎么判定:reason 分流与门禁
java·数据库·音视频