I also like to note that you should wear an anti-static wrist strap and unplug your PC before you start. Hold the RAM module by its edges “the green” parts. Check your motherboard manual to make sure you bought the right kind of ram. Contact your computer manufacturer if you can not find what type and speed of ram your PC uses, and make sure you install your RAM in the right slot if you are using a motherboard which has a dual channel memory mode. Also, make sure your RAM is the same size, type, and speed as the RAM that is already installed on your PC.
2. Make a new mySQL 5 database and import your mySQL4 database into it by using  phpMyAdmin.
3. Edit your wp-config.php which is found in the root folder of WordPress by changing the old database name, username, password, and the host name with the new database name, username, password and hostname.
4.Save the file and upload the file to the root folder of word press.