Jump to content


Photo

mysql_connect() problem


  • Please log in to reply
2 replies to this topic

#1 okok

okok
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 03 May 2006 - 12:38 PM

I installed mysql 5 on a MS-XP machine running apache 1.3 and php 4.

When a php script attempts to connect to mysql using

[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]mysql_connect($host, $user, $pass)[!--colorc--][/span][!--/colorc--]

the following error appears:

[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL[!--colorc--][/span][!--/colorc--] ...

When I use the same hostname, username and password via the commandline or from a GUI frontend, the connection works as it should.

What may be wrong?

#2 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 03 May 2006 - 01:03 PM

Go here

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=92645\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=92645[/a]

Ray

#3 okok

okok
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 03 May 2006 - 02:22 PM

Thank you very much.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users