Jump to content

Archived

This topic is now archived and is closed to further replies.

raj_verma

how to connect php with mysql database

Recommended Posts

Hello Everyone,

When i m connecting mysql database to php
there 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 possible

Thanks

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[!--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.1
You are saying that I have to configure MySQL please tell me how i configure MySQL
And also sort my problem how i connect MySQL to PHP.

I will be thankful to you to sorting out this problem

Please reply as soon as possible

Share this post


Link to post
Share on other sites
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 current

Ray

Share this post


Link to post
Share on other sites
[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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.