Re: MySQL connect problems
| From: | BoB6784 | Date: | Tue, 18 Jan 2005 14:08:09 +0000 |
| Subject: | Re: MySQL connect problems | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25405@lists.php.net to get a copy of this message | ||
hi,
Mysql 4.1.8 now support another authentication protocol and you need to upgrade to php 5 and activate mysqli extension (not mysql) and use mysqli_connect and change all mysql_* function to mysqli_*
another way to fix the problem is to allow previous protocol but I forgot the way how to do this
hope it will be usedul
BoB
Joseph L. Mueller a écrit :
Just upgraded to MSQL 4.1.8 and PHP 4.3.10 and am running apache 2.0.43 on Win XP. When trying to connnect to Mysql I get the following error: "Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Documents and Settings\Owner\My Documents\My Website\listing8.1.php on line 3" Listing8.1.php contains the following: <?php error_reporting (E_ALL); $conn = mysql_connect("localhost", "joeuser", "somepass"); echo "$conn"; ?> Any help would be appreciated.