当前位置:编程学习 > php >>

mysql数据库问题(php)

Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in D:\web\hengjie\conn.php on line 3

Warning: mysql_select_db() [function.mysql-select-db]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in D:\web\hengjie\conn.php on line 4

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in D:\web\hengjie\conn.php on line 4
答案:
有两种可能:1) 如果你的php的服务器和mysql服务器不在一个机器上,那有可能就是php服务器的mysql版本太低了,最好升级到与mysql服务器版本一致 2) 如果两者在一台机器上,那就要用OLD_PASSWORD对mysql库中user表里面的password重新复位一下:
mysql>SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
D:\web\hengjie\conn.php 这个文件的第三行出错了

上一个:php 编程 文本框数值传递问题
下一个:怎么样把PHP文件改位TXT文件

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,