连接8.0.15mysql 报错 client does not support authentication protocol requested by server ,consider upgra
程序员文章站
2022-06-12 22:45:42
...
连接mysqlclient8.0.15 报错 does not support authentication protocol requested by server ,consider upgrading mysql cliend
原因 8.x版本和5.X版本的密码加密方式不一样 所有需要手动改一下;
在cmd 管理员权限进入:依次操作
- 通过命令行进入解压的mysql根目录下。
- 登陆数据库
mysql -uroot -p
- 输入root的密码
Enter password: ******
- 更改加密方式
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
- 更改密码:该例子中 123456为新密码
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
- 刷新:
mysql> FLUSH PRIVILEGES;
4,5,6 输入 cmd输出 ok 表示操作成功
5 rows in set (0.00 sec)
上一篇: 女性不宜天天吃鸡蛋 死亡率将提高
推荐阅读
-
mysql Client does not support authentication protocol requested by server; consider upgrading MySQL
-
解决Navicat连接MySQL时“Client does not support authentication protocol requested by server; consider upgrading MySQL client”的问题
-
连接8.0.15mysql 报错 client does not support authentication protocol requested by server ,consider upgra
-
nodejs连接mysql报错:Client does not support authentication protocol requested by server; consider upgrad
-
MySQL8.0报错Client does not support authentication protocol requested by server; consider upgrading My
-
MySql 链接报错“Client does not support authentication protocol requested by server; consider upgradin”
-
node连接数据库报错Client does not support authentication protocol requested by server; consider upgrading M
-
关于nodejs报错Client does not support authentication protocol requested by server; consider upgrading My
-
MySql8.0,使用Navicat连接时报错:Client does not support authentication protocol requested by server;consider
-
navicate连接MySQL出现报错client does not support authentication protocol requested by server consider ...