개발 Q&A

제목 Warning: mysql_connect(): The server requested authentication method unknown to the client
글쓴이 제스퍼 작성시각 2013/08/17 14:15:55
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 18450   RSS
Warning: mysql_connect(): The server requested authentication method unknown to the client [mysql_old_password] in C:\xampp\htdocs\regPronDic\index.php on line 2 
 
Warning: mysql_connect(): The server requested authentication method umknown to the client in C:\xampp\htdocs\regPronDic\index.php on line 2 
Failed Connect MySql : The server requested authentication method umknown to the client 
 
이런 메세지가 뜹니다. 
 
로컬에서 접속 시도한거고.. 원격 DB에 접속하려고 시도하는데 뭐가 문제인지 모르겠어요. 
 
서버의 mysql에다가 root 계정 호스트로 '%'도 등록해놔서 
 
외부 mysql 프로그램에서는 접속이 잘됩니다. (ex: sqlyog, navicat 등등) 
 
그런데 로컬에서 코드상으로 원격 접속할때이런 문제가 생기네요. 
 
뭐가 문제일까요? 뭘 수정해야할까요? 알려주세요 ㅠ_ㅠ
 다음글 창피한 질문이긴 하지만 올려봅니다 (7)
 이전글 First Data Payment 써보신분? (2)

댓글

들국화 / 2013/08/19 09:28:13 / 추천 0
MySQL 이 버전이 낮은듯 하네요. 4.x버전부터 패스워드 구조가 바뀌어서 그런듯 하네요.

http://stackoverflow.com/questions/1575807/cannot-connect-to-mysql-4-1-using-old-authentication