The client does not support the authentication protocol requested by the server

I need to install the PHP4 environment in conjunction with mysql5, and I encountered this problem when I try to connect to mysql.

Thanks for any trace.

+3
source share
2 answers

The solution is to update the password for database users using the MySQL OLD_PASSWORD function. For instance:

[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>
+7
source

This is a known MySQL issue. C.5.2.4. Client does not support authentication protocol:

MySQL 5.1 , , ( 4.1) . 4.0, : " ; MySQL".

, :
   1. , 4.1.1 .
   2. 4.1 , 4.1.
   3. Reset 4.1 , 4.1.
   4. .

+2

Source: https://habr.com/ru/post/1777627/


All Articles