---
title: "如何让php4支持mysql4.1"
author: "smallearth"
date: "2013-01-27T09:12:00Z"
tags: []
slug: "php4-mysql4-1"
draft: false
lastmod: "2013-11-30T20:10:26Z"
id: 1983295
url: "https://smallearth.iteye.com/blog/1983295"
---

我自己配了一个php4的开发环境，相当不容易啊，到了最后安装mysql4.1的时候，又暴了这个错误，

# [Install](http://forums.mysql.com/list.php?11)::["mysql\_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client"](http://forums.mysql.com/read.php?11%2C6400%2C6400#msg-6400)

哎，几经周折，这样解决的 在命令行里从新设置下密码，代码如下 SET PASSWORD FOR root@localhost = OLD\_PASSWORD('something');"然后restart mysql。然后我就解决了，哈哈哈哈

在不懂，请参考[http://forums.mysql.com/read.php?11,6400,6701](http://forums.mysql.com/read.php?11%2C6400%2C6701)