mysql8.0报错问题,数据库连接不上,报The server requested authentication method unknown to the client
2019-05-30 11:02
876 查看
其实很简单的,首先说明一下为什么会报错,一是密码太简单了,其二是没有配在[mysqld]中添加下边的代码
default_authentication_plugin=mysql_native_password;下面说一下怎么做;
一在
用记事本编辑,里面写
[mysqld]
设置默认字符集,只会影响新建数据库的默认字符集
character-set-server=utf8
default_authentication_plugin= mysql_native_password
接着在mysql里面编辑修改密码,密码一定要加字母就是为了安全性,是的就是这样,怎么修改密码写一下步骤;
一使用win+r输入cmd,
二、在里面输入
mysql -uroot -p123456”,root是mysql用户名,123456是密码,可以看到可以直接打开,
然后输入
登录MySQL后输入:
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘YourPassword’;
FLUSH PRIVILEGES;
真就做到这里就会成功的;
相信自己,我也是这么一步步来的,错误不可怕,我们做出来就会很有成就感的
相关文章推荐
- php连接mysql报The server requested authentication method unknown to the client [caching_sha2_password]错
- Discuzx2.5 数据库连接问题 Host '***.***.***.***' is not allowed to connect to this MySQL server
- 关于使用navicat for mysql在建立数据库连接时出现的2003 can't connect to mysql server on'localhost'(10038)问题
- Mysql 连接提示 Client does not support authentication protocol requested by server; consider upgrading MySQL client 解决方法
- 烦人的问题:Client does not support authentication protocol requested by server; consider upgrading MySQL client
- mysql 连接池连接超时的问题(The last packet sent successfully to the server was 776,652 milliseconds ago)
- mysql 连接池连接超时的问题(The last packet sent successfully to the server was 776,652 milliseconds ago)
- mysql 连接出现The last packet sent successfully to the server was 0 milliseconds ago.问题解决
- myeclipse连接MySQL出现Client does not support authentication protocol requested by server;........
- navicat 连接 mysql 出现Client does not support authentication protocol requested by server解决方案
- 在万网虚拟主机上连接数据库出错mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication
- navicat连接mysql时提示Client does not support authentication protocol requested by server错误
- 【MySql】数据库连接异常:The last packet sent successfully to the server was 0 milliseconds ago
- [转帖]MYSQL升级导致的"Client does not support authentication protocol requested by server"
- MySQL之——MySQL远程连接丢失问题解决方法(Lost connection to MySQL server)
- Client does not support authentication protocol requested by server: MYSQL
- mysql连接远程数据库出现 ERROR 2013 (HY000) Lost connection to MySQL server at 'reading authorization packet',
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- Navicat连接MySQL8.0版本时报错解决:Client does not support authentication protocol requested by server.
- Mysql4安装Client does not support authentication protocol requested问题的解决