°²×°MySql4.1ÒÔÉÏ£¬php³ÌÐòµÈÎÞ·¨Á¬½ÓÊý¾Ý¿â£¬´íÎóÐÅÏ¢ÈçÏ£º
Client does not support authentication protocol requested by server; consider upgrading MySQL client
³öÏÖÕâ¸öÎÊÌâµÄÔÒò£º
ÒòΪʹÓõÄmysql·þÎñÆ÷°æ±¾ÖÐʹÓÃÁËеÄÃÜÂëÑéÖ¤»úÖÆ£¬ÕâÐèÒª¿Í»§¶ËµÄ°æ±¾ÒªÔÚ4.0ÒÔÉÏ£¬ÔÀ´µÄÃÜÂ뺯Êý±»¸ÄΪold_password ();£¬ÕâÑùʹÓÃpassword()Éú³ÉµÄÃÜÂëÔھɵİ汾ÉϵĿͻ§¶Ë¾Í²»ºÃʹÁË£¬¶øPHPÖеÄMYSQL¿Í»§¶Ë¶¼ÊÇ3.23µÄ(µ±È»£¬mysqliµÄÀ©Õ¹³ýÍâ)£¬ÎÊÌâ¾ÍÔÚÕâÁË¡£
½â¾ö·½·¨£º
1¡¢Óû§root£¬ÃÜÂëroot£¬Ê¹ÓÃsetÃüÁ
mysql\bin>mysql -uroot -proot
mysql\bin>set password for 'root'@'localhost'=old_password('root');
2¡¢Óû§root£¬ÃÜÂëroot£¬Ê¹ÓÃupdateÃüÁ
mysql\bin>UPDATE mysql.user SET Password = OLD_PASSWORD('root') WHERE Host = 'localhost' AND User = 'root';
mysql\bin>FLUSH PRIVILEGES;
over!