Home >Backend Development >PHP Tutorial > PHP无法连接mysql数据库

PHP无法连接mysql数据库

WBOY
WBOYOriginal
2016-06-13 13:42:58853browse

求助:PHP无法连接mysql数据库
我的开发环境是lixnu下的xampp,前些天才装的,版本都比较新的。
无论是用命令行,还是phpmyadmin都可以连接到mysql数据库,一切正常。
但是用mysql_connect()函数连接时就会报错:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
上网查了一下说是密码不兼容,用那个什么OLD_PASSWORD试了一下还是不行。
好郁闷啊!哪位朋友帮帮我?

------解决方案--------------------
Client does not support authentication protocol requested by server; consider upgrading MySQL client
客户端不支持服务器要求身份验证协议;考虑升级MySQL客户端

你是用的版本非常旧,请给出。看一下

------解决方案--------------------
那你update 客户端试试呢。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn