MySQL Password() & PHP encryption?

From: Date: Fri, 07 May 2004 01:26:45 +0000
Subject: MySQL Password() & PHP encryption?
Groups: php.db 
Request: Send a blank email to php-db+get-34294@lists.php.net to get a copy of this message
Hi all, I've recently upgraded my mysql to v 4.1.1 (on win nt 4.0) and set the Passwords in the user table to the mysql Password() function. Now, this doesn't work anymore when call from a php web script (which is a good thing, cause it's plain text): mysql_connect ("localhost", "theID", "thePassord"); gives me this error: Client does not support authentication protocol requested by server ... Since my mysql.mysql user table now has the 41 bit encrypted passwords stored...how to I connect with my php scripts? I've tried md5(), sha1()...but they don't generate the same 41 bit encrypted password. Anyone have a suggestion? Thanks!

« previous php.db (#34294) next »