Well, WAMP is a special customization of Apache, MySQL, and PHP by the developer. Since it is not a standard Apache, MySQL and PHP install, it would take an intimate knowledge of how WAMP sets up and customizes Apache, MySQL and Windows to setup. There is a much easier way to do this though, just use an older version of WAMP that has the version of MySQL you are looking for.
You should download and install WAMP version 1.4.4. It comes with MySQL 4.1.10. The next WAMP release after that is WAMP 1.4.5 which uses MySQL 5.0.15 which will not work with your script.
Download WAMP 1.4.4 here:
[
prdownloads.sourceforge.net]