Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MariaDB client in /home1/htdocs/apartzm/affisacc/php/acc_tongys.inc.php on line 188ERROR 1251: Client does not smysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client

mysql(mariadb) 접근시


mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client

또는

mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MariaDB client

오류가 발생한다면…

 

구버전의 mysql 클라이언트가 신 버전의 mysql 서버로 접근하는 경우
좀더 정확히는… mysql서버의 old_passwords 설정이 ”0(off)” 정책으로 운영되어
생성된 계정의 패스워드가 새로운 패스워드 정책을 사용하지만
클라이언트는 이를 지원하지 못하는 버전인 경우에 발생함

접근하고자 하는 유저의 패스워드를 구버전 형태로 변경해주면 된다.

(서버의 old_passwords 옵션을 건드릴 필요는 없음…. 필요한 계정에 대해서만 처리해주면 됨)


update user set password=old_password('변경할 패스워드') where user='변경 대상 유저';
flush privileges;

변경 대상 유저는 choilha, 변경할 패스워드는 "1234" 라고 한다면

update user set password=old_password('1234') where user='choilha';

이렇게..

 

처리하면 됨…

About KENNETH 19688 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.