|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-08 19:11 UTC] hholzgra@php.net
[2007-09-08 19:16 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ Note: I am not able to connect php to mySQL and please see below error messages. If I am not going to change versions of my servers, can I connect (using my ?php? scripts) to mySQl databases? I am current using: Apache 1.3.37 MySQL 4.1.22 Php 4.4.7 Thank you, Henry from Oregon USA Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in c:\program files\apache group\apache\htdocs\temp_con.php on line 3 error connectingClient does not support authentication protocol requested by server; consider upgrading MySQL client Reproduce code: --------------- Here are my php scripts (db_config.php, temp_con.php) : db_config.php <?php $db_host = "localhost"; $db_user = "root"; $db_password = "123123"; $db_name = "webq"; ?> temp_con.php <?php require($_server["DOCUMENT_ROOT"]."db_config.php"); $connection = mysql_connect($db_host, $db_user, $db_password) or die("error connecting"); print "connection made"; ?> Expected result: ---------------- "connection made" Actual result: -------------- error (see above)