Ok what you have to do is this, go to your PHP install directory and rename libmysql.dll to libmysql.old.
Next head to http://www.php.net/releases/ and grab 5.2.1 Windows Binary download, just open the zip. Once open copy libmysql.dll to your php directory.
That should do the trick, it just worked fine for me.
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.