MySQL数据库的安装教程及相关问题

本文提供MySQL数据库的安装教程,解决Authenticationplugin'caching_sha2_password'无法加载的问题,mysql远程连接权限配置,以及Navicat连接MySQL时出现的1251错误解决方案。

MySQL数据库的安装教程及相关问题

2018-07-13

MySQL数据库的下载及安装教程

问题1:Authentication plugin 'caching_sha2_password' cannot be loaded

alter user 'root'@'%' identified with mysql_native_password by 'root';
set password for 'root'@'%'='Test123';
--Test123 为密码 root为user %对应host,默认是localhost,%是通配符 
flush privileges;

 

问题2:mysql远程连接 Host * is not allowed to connect to this MySQL server

MySQL 8.0 Command Line Client - Unicode 

use mysql;
select host,user,plugin from user where user='root'; 
update user set host ='%'where user ='root';

重启服务使其生效

+-----------+------------------+-----------------------+
| Host      | User             | plugin                |
+-----------+------------------+-----------------------+
| %         | ming8006         | caching_sha2_password |
| localhost | mysql.infoschema | caching_sha2_password |
| localhost | mysql.session    | caching_sha2_password |
| localhost | mysql.sys        | caching_sha2_password |
| localhost | root             | caching_sha2_password |
+-----------+------------------+-----------------------+

 

 

问题3:navicat 连接 mysql 出现1251Client does not support authentication protocol requested by server的解决方案

MySQL 8.0 Command Line Client - Unicode 

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'quark@123';

重启服务使其生效

 

转载于:https://www.cnblogs.com/Ming8006/p/9306452.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值