질문Q #2346
Warning: mysql_connect(): The server requested authentication method unknown to the client
제스퍼2013-08-17 14:15:55
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 등등) 
 
그런데 로컬에서 코드상으로 원격 접속할때이런 문제가 생기네요. 
 
뭐가 문제일까요? 뭘 수정해야할까요? 알려주세요 ㅠ_ㅠ
답변1
#1 들국화 2013-08-19 09:28:13
MySQL 이 버전이 낮은듯 하네요. 4.x버전부터 패스워드 구조가 바뀌어서 그런듯 하네요.

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