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

2014. 1. 24. 10:33DB/Mysql

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




원인 : php4.x 버젼에서 mysql5.x 버젼으로 접속하려고 할 경우


mysql_connect 함수에서 상위버젼의 password를 제대로 인식하지 못하기 때문.



해결 : mysql 5.x 버젼에서 사용자의 password를 old_password로 업데이트 해준다.


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

flush privileges;

'DB > Mysql' 카테고리의 다른 글

 라는 코드가 db에 섞여 있을 경우  (0) 2014.02.14
테이블 row 건수 확인  (0) 2014.01.24
mysql partitioning 예제  (0) 2013.07.18
select if  (0) 2013.06.06
mysql 콘솔상에서 비밀번호 셋팅 및 적용  (0) 2013.06.06