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

相关推荐
wb1895 小时前
服务器的Mysql 集群技术
linux·运维·服务器·数据库·笔记·mysql·云计算
zl0_00_05 小时前
web刷题2
数据库
鲨鱼辣椒_TUT5 小时前
MySQL连接算法和小表驱动大表的原理
mysql·算法·adb
SelectDB6 小时前
森马服饰从 Elasticsearch 到阿里云 SelectDB 的架构演进之路
大数据·数据库·数据分析
寒士obj7 小时前
MySQL偏门但基础的面试题集锦
数据库·mysql
唐叔在学习7 小时前
9类主流数据库 - 帮你更好地进行数据库选型!
数据库·redis·mysql·mongodb·nosql·大数据存储
大数据狂人7 小时前
从 Hive 数仓出发,全面剖析 StarRocks、MySQL、HBase 的使用场景与区别
hive·mysql·hbase
失因8 小时前
Linux 权限管理与 ACL 访问控制
linux·运维·服务器·数据库·centos
小醉你真好8 小时前
Spring Boot + ShardingSphere 分库分表实战
java·spring boot·后端·mysql
cookqq8 小时前
mongodb源代码分析创建db流程分析
数据库·sql·mongodb·nosql