wordpress网站升级更新后出现错误:Warning: mysql_connect() [function.mysql-connect]: Headers and client library minor version mismatch.

wordpress主机网站升级更新后出现错误:Warning: mysql_connect() [function.mysql-connect]: Headers and client library minor version mismatch. Headers:50626 Library:50544 in /home/public_html/wp-includes/wp-db.php on line 1515

根据提示在wp-includes文件夹中找到wp-db.php,通过记事本工具或Notepad+(推荐百度下载,会直接标注1515行)找到1515行中的(搜索:mysql_connect):$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );

在mysql_connect之前增加个”@”保存后上传到空间里替换即可。

t2

 

原创文章,转载请注明:原文转载地址: http://www.ldhost.cn/jc/wp/312.html