ERROR 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client
기존에 문자발송 업체를 Dacom 에서 KT로 변경하면서 MYSQL 버전도 같이 업그레이드 해주면서 생긴문제이다.
기존 데이콤 MYSQL은 3.x 를 사용하였고 이번 변경할 KT는 5.1.34 이용
[root@localhost ]# /usr/local/mysql/bin/mysql -u user -p password -Ddatabase -h 192.168.xx.xx
ERROR 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client
=> MySQL 클라이언트를 업그레이드 하라는 에러메세지 출력
MySQL 업데이트되면서 패스워드 저장방식이 바뀌면서 생기는 에러이다.
# 서버 디비버전
Server version: 5.1.34-log Source distribution
# 서버 계정을 OLD_PASSWORD 방식으로 바꿔주면 해결
mysql> use mysql;
mysql> update user set Password=old_password('*******') WHERE User='user';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)