gpt4 book ai didi

php - 客户端不支持服务器请求的身份验证协议(protocol)

转载 作者:可可西里 更新时间:2023-11-01 07:17:13 25 4
gpt4 key购买 nike

我需要结合mysql5建立PHP4环境,在尝试连接mysql时遇到了这个问题。

谢谢你的踪迹。

最佳答案

solution就是利用MySQL的OLD_PASSWORD函数更新数据库用户的密码。例如:

[chris@office ~]$ mysql -u root -p mysql

Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 267
Server version: 5.1.41-3ubuntu12.1 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use mysql;
Database changed

mysql> update user set Password=OLD_PASSWORD('password') WHERE User='username';

Query OK, 0 rows affected (0.02 sec)
Rows matched: 0 Changed: 0 Warnings: 0

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql>

关于php - 客户端不支持服务器请求的身份验证协议(protocol),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4312710/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com