Jump to content

how to connect php with mysql database


raj_verma

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
Link to comment
https://forums.phpfreaks.com/topic/8798-how-to-connect-php-with-mysql-database/
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
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

Archived

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

×
×
  • Create New...

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.