Windows + PHP 4 + MySQL 5
After setting database user make sure to switch mysql to use old passwords or you won't be able to connect do database.
mysql> SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
Add "old-passwords" (w/o quotes of course) at the end of mysql.ini file and restart service.