My Windows machine had ruby 1.9.2 and Rails 3.1. Now that ruby 1.9.3 and rails 3.2 are out, it was time to upgrade. This method isn’t the easiest, but it worked just fine for me. Note that this machine has MySQL version 5, so step 7 is necessary for me. If you have MySQL version 6, copy libmysql.dll from there if it isn’t already on the path.
1. Install the latest version of ruby (currently 1.9.3-p125) a. Follow the instructions on rubyinstaller.org b. I recommend you use the defaults (install to C:\ruby193) c. make sure to also install DevKit (install to C:\ruby193\DevKit) 2. install pik a. gem install pik b. pik_install C:\bin (or other directory that is always on your path) 3. Add this ruby to pik a. pik add C:\ruby193\bin 4. Use this version of ruby a. pik use ruby 1.9.3p125 (note: there is no dash between the version and the p) I put this in a batch file, rather than have it load automatically with cmd 5. gem install rails 6. gem install mysql2 7. copy version 6 of libmysql.dll to C:\ruby193\bin (same directory as this version of ruby.exe) a. download it from the site shown on the gem install mysql2 8. rails new yourproject -d mysql 9. cd yourproject 10. edit database.yaml so adapter is mysql2 11. bundle install