ºìÁªLinuxÃÅ»§
Linux°ïÖú

ʹÓÃMySql 4.1 ÒÔÉÏÎÞ·¨Á´½ÓÊý¾Ý¿âÎÊÌâ½â¾ö·½·¨

·¢²¼Ê±¼ä:2008-07-14 00:02:58À´Ô´:ºìÁª×÷Õß:opviem
°²×°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!
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ