Download mysql community server from mysql.com: mysql-noinstall-5.0.51b-win32.zip
Unzip
Choose a my.ini template file (e.g. my-small.ini)
Add to my.ini if mysql root directory is NOT c:\mysql (Note the forward slash).
[mysqld]
# set basedir to your installation path
basedir=C:/mysql/mysql-5.0.51b-win32
# set datadir to the location of your data directory
datadir=C:/mysql/mysql-5.0.51b-win32/data
Copy my.ini to C:\windows directory
Install mysql as a service: C:\jml\prog\org\mysql\mysql-5.0.51b-win32\mysqld –install MySQL