php4 连 mysql5 的问题

用php4连接mysql5时,
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in

困了一天,最后还是到网上找到了解决办法:

在MYSQL Command Line Client中输入:SET PASSWORD FOR  'username'@'host' = OLD_PASSWORD('your_password');
posted @ 2007-08-15 16:12  万朗  阅读(449)  评论(0编辑  收藏  举报