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

相关推荐
星云API|微信接口开发17 分钟前
企业微信二次开发实战笔记:如何用在线调试快速验证接口功能
数据库·笔记·企业微信
PHP实战开发录2 小时前
PHP事务异常后为什么数据还写进去了
mysql·php·开发
隔窗听雨眠6 小时前
记一次SQL Server数据库性能分析:从CPU100%到单配置修复的完整诊断
开发语言·数据库·php
samson_www6 小时前
Oracle数据泵拷贝表空间
数据库·dba
呆萌很7 小时前
MySQL 8.4 LTS 完整安装教程
数据库·mysql
天空'之城7 小时前
单片机基础核心知识点汇总(三十三)
数据库·单片机·嵌入式硬件
爱吃苹果的日记本9 小时前
数据结构第一课
c语言·数据结构·数据库·学习·c#
张小姐的猫9 小时前
【AI大模型接入SDK】 —— Gemini接入封装
android·数据结构·数据库·c++·人工智能·python
Thomas21439 小时前
mysql 索引面试复习
数据库·mysql·面试