远程连接mysql8.0,Error No.2058 Plugin caching_sha2_password could not be loaded

    通过本地去连接远程的mysql时报错,原因时mysql8.0的加密方法变了。

    mysql8.0默认采用caching_sha2_password的加密方式

    第三方客户端基本都不支持这种加密方式,只有自带的命令行支持

    所以需要修改加密方式。

    首先进入mysql命令行    

    [[email protected] ~]# mysql -u root -p
    Enter password:

    第一步:修改加密方式

    ALTER USER‘root‘@‘localhost‘ IDENTIFIED BY ‘[email protected]‘ PASSWORD EXPIRE NEVER;

    第二步:重新修改密码

    ALTER USER‘root‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘[email protected]‘;

    第三步:刷新(不做可能无法生效)

    FLUSH PRIVILEGES;

    

    之后可以成功连接。

    

    

    

    

原文地址:https://www.cnblogs.com/goxcheer/p/9420538.html

时间: 2024-08-01 02:49:25

远程连接mysql8.0,Error No.2058 Plugin caching_sha2_password could not be loaded的相关文章

远程连接MYSQL8.0服务器问题

title: 远程连接MYSQL8.0服务器问题 date: 2018-07-07 11:02:26 updated: tags: [MYSQL,坑] description: keywords: comments: image: --- 问题描述: 先前使用MYSQL5.1,远端访问MYSQL服务器没问题,遇到的问题也就是防火墙问题,修改出入站规则后轻松的解决了.但是MYSQL8.0就很坑了,按照网上的解决办法折腾了两个小时,最后解决,依然不明白哪里有问题,只能把操作复现,为以后使用留个记录.

【问题记录】Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’....错误

问题描述: Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’ cannot be loaded:......错误 问题分析: mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password. 解决办法: 1.登陆数据库:mysql - u root -p; 2.切换数据库:use mys

navicat连接mysql8.0+版本报错2059

ERROR 2059 : Authentication plugin 'caching_sha2_password' cannot be loaded 问题: 连接Docker启动的mysql出现:ERROR 2059: Authentication plugin 'caching_sha2_password' cannot be loaded 问题出现原因: 在用navicat连接MySQL8+时会出现2059错误,这是由于新版本的MySQL使用的是caching_sha2_password验

postgreSQL远程连接出现:Error connecting to server :致命错误 SSL关闭的pg_hba.conf记录

异常截图: 解决方案: [[email protected] ~]# vi /var/lib/pgsql/data/pg_hba.conf # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all ident # IPv4 local connections: host all all 127.0.0.1/32 ident hos

Hadoop Eclipse远程连接出现:Error:Call to /10.10.10.10:9000 failed on local exception: java.io.EOFException

异常截图: 原因很简单,Hadoop对应的eclipse插件jar包版本不对,更换至响应版本即可. Hadoop Eclipse远程连接出现:Error:Call to /10.10.10.10:9000 failed on local exception: java.io.EOFException,布布扣,bubuko.com

如何用xmanager远程连接centos6.0的桌面

在centos6.0系统上设置 修改custom.conf文件 vim /etc/gdm/custom.conf 在[security]下面添加 AllowRemoteRoot=true 在[xdmcp]下面添加 Port=177 Enable=1 修改完后效果如下: [daemon] [security] AllowRemoteRoot=true [xdmcp] Port=177 Enable=1 [greeter] [chooser] [debug] 保存退出 2.修改inittab文件 v

PyCharm Community 2019.2 连接MySQL8.0 时区不同步的解决

Windows10中,PyCharm Community 2019.2  连接MySQL8.0 连接错误,IDE提示如下: Cannot connect to "MySQL8.0".The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via

【问题解决】连接mysql 8错误:authentication plugin 'caching_sha2_password

在刚安装好mysql8,使用native连接的时候报错 authentication plugin 'caching_sha2_password'... 首先确保服务已开启,然后通过cmd命令进入mysql的localhost数据库 mysql -hlocalhost -uroot -p123456 然后进入mysql数据库 use mysql; 修改密码 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY

连接MySQL错误“plugin caching_sha2_password could not be loaded”的解决办法

MySQL新版默认使用caching_sha2_password作为身份验证插件,而旧版是使用mysql_native_password.当连接MySQL时报错“plugin caching_sha2_password could not be loaded”时,可换回旧版插件. mysql -hlocalhost -uroot -p123456 //进入数据库use mysql;ALTER USER [email protected] IDENTIFIED WITH mysql_native_