大家好,我是考100分的小小码 ,祝大家学习进步,加薪顺利呀。今天说一说解决1251 – Client does not support authentication protocol requested by server;consider upgrading…[通俗易懂],希望您对编程的造诣更进一步.
mysql -u root -p
代码100分
2.更改加密方式:
代码100分mysql> ALTER USER "root"@"%" IDENTIFIED BY "password" PASSWORD EXPIRE NEVER;
3.更改密码:
mysql> ALTER USER "root"@"%" IDENTIFIED WITH mysql_native_password BY "password";
4.刷新:
代码100分mysql> FLUSH PRIVILEGES;
mysql> use mysql;
Database changed
mysql> select user,host from user;
+------------------+-----------+
| user | host |
+------------------+-----------+
| mysql.infoschema | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
+------------------+-----------+
rows in set (0.00 sec)
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/8548.html