raj_verma Posted May 1, 2006 Share Posted May 1, 2006 Hello Everyone,When i m connecting mysql database to phpthere is showing an error.Please help me guys to sorting it out.I m very new to this language.[b]The error is as follow :-[/b]Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\raj\database.php on line 13[color=#FF0000]Please reply me as soon as possibleThanks Quote Link to comment https://forums.phpfreaks.com/topic/8798-how-to-connect-php-with-mysql-database/ Share on other sites More sharing options...
wildteen88 Posted May 1, 2006 Share Posted May 1, 2006 Could you provide details on the versions of PHP and MySQL.Also I believe you have to configure MySQL to use the old passwords directive to sort this issue out. Quote Link to comment https://forums.phpfreaks.com/topic/8798-how-to-connect-php-with-mysql-database/#findComment-32320 Share on other sites More sharing options...
raj_verma Posted May 1, 2006 Author Share Posted May 1, 2006 [!--quoteo(post=370250:date=May 1 2006, 05:17 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ May 1 2006, 05:17 AM) [snapback]370250[/snapback][/div][div class=\'quotemain\'][!--quotec--]Could you provide details on the versions of PHP and MySQL.Also I believe you have to configure MySQL to use the old passwords directive to sort this issue out.[/quote]I m using php 4.2 and mysql 4.1You are saying that I have to configure MySQL please tell me how i configure MySQLAnd also sort my problem how i connect MySQL to PHP.I will be thankful to you to sorting out this problemPlease reply as soon as possible Quote Link to comment https://forums.phpfreaks.com/topic/8798-how-to-connect-php-with-mysql-database/#findComment-32321 Share on other sites More sharing options...
craygo Posted May 1, 2006 Share Posted May 1, 2006 The fix can be found here. You have to do this from the mysql prompt.[a href=\"http://www.digitalpeer.com/id/mysql\" target=\"_blank\"]http://www.digitalpeer.com/id/mysql[/a]or here[a href=\"http://dev.mysql.com/doc/refman/5.0/en/old-client.html\" target=\"_blank\"]http://dev.mysql.com/doc/refman/5.0/en/old-client.html[/a]This has to be done from php version 4.x.x to currentRay Quote Link to comment https://forums.phpfreaks.com/topic/8798-how-to-connect-php-with-mysql-database/#findComment-32337 Share on other sites More sharing options...
irene169 Posted May 1, 2006 Share Posted May 1, 2006 [b]EDITED BY WILDTEEN88: PLEASE POST YOUR PROBLEM IN A NEW THREAD RATHER THAN IN A CURRENT THREAD WHICH YOUR PROBLEM DOESN'T RELATE TO THANK YOU[/b] Quote Link to comment https://forums.phpfreaks.com/topic/8798-how-to-connect-php-with-mysql-database/#findComment-32385 Share on other sites More sharing options...
raj_verma Posted May 2, 2006 Author Share Posted May 2, 2006 Thanks a lot.This really worksThanks once again. Quote Link to comment https://forums.phpfreaks.com/topic/8798-how-to-connect-php-with-mysql-database/#findComment-32534 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.